CMake and C++11 on MacOS – Set your variables before creating your target
When creating a C++ project with CMake that requires C++11, I found that setting the variable CMAKE_CXX_STANDARD must happen before add_executable to work.
When creating a C++ project with CMake that requires C++11, I found that setting the variable CMAKE_CXX_STANDARD must happen before add_executable to work.
If C++ code has exceptions derived from std::exception and a logging function that takes a std::exception the sub-class can’t be re-thrown. Here’s why.
This post shows how to use the date library maintained by Howard Hinnant to do simple formatting on a date string. It turns out to be surprisingly easy!