September 2018
Intermediate to advanced
606 pages
14h 32m
English
We will use the same version.hpp.in as in the previous recipe, and will modify the example.cpp file only minimally, to make it clear that it prints a build-time Git hash:
#include "version.hpp"#include <iostream>int main() { std::cout << "This code has been built from version " << GIT_HASH << std::endl;}
Read now
Unlock full access