Category: C++

Taylor Built Solutions Logo

Is C++ Still Worth Learning?

Is C++ worth learning these days when web applications and web services are eating the world? Yes! Find out why here.

Taylor Built Solutions Logo

How Do C++ Lambdas Work?

I’ve written a post on how to use lambdas in C++ but how do they actually work? Here is an under the hood description of C++ lambdas.

Taylor Built Solutions Logo

Intro to C++ Lambda Expressions

What is a lambda? And how do you use one in C++? This post explains what lambdas are, what they’re used for, and how to use lambdas in C++.

Taylor Built Solutions Logo

Understand Your Code Better By Experimenting With Unit Tests

Don’t understand how your code or a library works? Writing unit tests lets you experiment and learn how the code works.

Taylor Built Solutions Logo

Visual Studio 2019 Warning C4296 – Comparing std::size_t >= 0 Is Always True

If you get Visual Studio 2019 Warning C4296 in your C++ project on a line comparing a size_t >= 0 it’s valid. Here’s why: size_t is unsigned.

Taylor Built Solutions Logo

How Do I Get CMake To Find Boost When Using Conan?

If you’re using Conan with CMake to build the build system for your C++ project how do you get it to find Boost? Use cmake_find_modular. And RTFM!

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!

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