Skip to content

FBorowiec/advanced_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern C++ features

Contains example of modern C++ usage.

How to run the code locally with Bazel already installed on host

Bazel installation

Install Bazel

Once you have successfully installed Bazel you can run the code using:

Basic examples:

bazel test //modern_cpp_examples/basic_examples/...
bazel test //modern_cpp_examples/map/...

Advanced examples:

bazel test //modern_cpp_examples/advanced_examples/...

Run the code inside a container

You can use my following Docker image to instantiate a container locally with Ubuntu and Bazel already installed:

docker run -it --rm framaxwlad/ubuntu_dev:latest

There you can simply clone the repository:

git clone https://github.com/FBorowiec/advanced_cpp.git
cd advanced_cpp/

And use the aforementioned commands to run the program:

bazel test //modern_cpp_examples/advanced_examples/...