Logo

Blog


C++

Best performance of a C++ singleton

In my Januray post, I focused on implementing a singleton correctly. This time I want to add performance into the mix and show you the best way to implement your singleton... or [...]
C++ Insights

C++ Insights Episode 71: C++23: multidimensional operator[]

I published a new C++ insights episode: C++23: multidimensional operator[]. [...]
Conference

CppCon 2025 recording of my talk "Back to Basics: static, inline, const, and constexpr" is available

I'm pleased to announce that the recording of my talk at CppCon Back to Basics: static, inline, const, and constexpr of my presentation is available YouTube: [...]
C++

The Reset trick

My last month's post, Singleton done right in C++, has triggered plenty of comments. I expected a few, but not that much. So thank you for keeping the conversation going. [...]
C++ Insights

C++ Insights Episode 70: Efficiently passing a std::source_location object

I published a new C++ insights episode: Efficiently passing a std::source_location object. [...]
C++

Singleton done right in C++

In today's post, I like to touch on a controversial topic: singletons. While I think it is best to have a codebase without singletons, the real-world shows me that singletons are [...]
C++ Insights

C++ Insights Episode 69: = default and uniform initialization - Best Practice Explained

I published a new C++ insights episode: = default and uniform initialization - Best Practice Explained. [...]
C++

C++20s std::source_location in action

In today's post, I want to address a question I'm getting occasionally when teaching a C++20 class. From the plenty of new features that we got with C++20, one sticks out as [...]
C++ Insights

C++ Insights Episode 68: C++20: Making constructors smarter with conditional explicit

I published a new C++ insights episode: C++20: Making constructors smarter with conditional explicit. [...]
C++

C++20s concepts with a forward declared type

In today's post, I would like to continue talking about forward declared or better incomplete types in C++. [...]