Tag: C++11

Taylor Built Solutions Logo

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.

Taylor Built Solutions Logo

Throwing C++ Polymorphic Exceptions

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.

Taylor Built Solutions Logo

C++ Date Silliness Update

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!