Blog

Member Function Overloading: Choices You Didn’t Know You Had

Let’s explore your understanding of member function overloading. For a given class, how many different non-template overloads can you define...

Move constructors can copy and std::move doesn’t move anything

I recently came across an interesting use of std::move which looked something like the following: void MyObject::processItems() { std::vector<int> […]

...

Creating shortcuts with parameters using CMake/CPack and NSIS

CMake/CPack does a pretty good job of making it relatively easy to create a basic Windows installer. Sometimes, however, it...

Building GoogleTest and GoogleMock directly in a CMake project

Arguably the most flexible, robust way to incorporate gtest or gmock into a CMake project....

OnLeavingScope: The sequel

In a previous article, the OnLeavingScope class was presented as a technique for robustly and concisely handling scenarios involving multi-step...

Let your compiler do your housekeeping

A common sequence of steps we mortal software developers frequently find ourselves implementing goes something like this: Perform some sort...

Quoting In CMake

Get some clarity on CMake’s quoting rules, as we highlight common pitfalls and offer guidelines for safer use.

Read More »