Skip to content

andreasfertig/notebookcpp-tips-and-tricks-with-templates

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Companion Source Code for "Notebook C++ - Tips and Tricks with Templates" 2. Edition

Build Status License

Book cover

Code examples

This repository contains runnable source code examples from the 2. edition of Notebook C++ - Tips and Tricks with Templates, by Andreas Fertig.

The layout of the examples

The examples are separated into different directories based on how they appear in the book.

Running the examples

The examples are in a single .cpp file that can be easily executed in any IDE. There is also an CMakeLists.txt which can generate IDE projects or be used to compile the example in a terminal. This repo contains a top-level CMakeLists.txt, which does build all the examples.

Building the examples

You can select the compiler by setting the CXX environment variable.

mkdir notebookcpp-tips-and-tricks-with-templates
cd notebookcpp-tips-and-tricks-with-templates
git clone https://github.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates
mkdir build
cd build
cmake ../
cmake --build . -j

After that, you find all the executables in notebookcpp-tips-and-tricks-with-templates/build/bin.

Some examples use the latest C++ standard, so you will need a modern compiler to compile them. The latest stable versions of GCC or Clang are recommended. The code is not tested but is also expected to work with MSVC.

License

The source code is released under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages