Tag: C++14

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!

Taylor Built Solutions Logo

C++ Date Type Silliness

Recently, I had a project which needed to hold a date with the following properties: Hold the year, month, and day Take a C string (char*) in the format “YYYYMMDD” Do some basic validation and assumption fixing (disallow blank & empty input) Produce a string in a specified format for JSON output My extensive experience…
Read more