Let’s start exploring C++26 with a simple but useful change. Thanks to Yihe Li’s proposal (2573R2), when we =delete a special member function or a function overload, we can specify a reason. This ...
Let's start exploring C++26
During the last 2 years, we spent a lot of time exploring C++23 resulting in almost 40 blog posts. I’m not saying that we covered every single new language or library feature, but we covered most o...
Replace CRTP with concepts?
In my Meeting C++ 2024 trip report, among my favourite ideas I mentioned Klaus Iglberger’s talk where he mentioned the possibility of replacing the curiously returning template pattern with the hel...
How to ensure a class is not copyable or movable
The topic of this post is to show different ways to ensure that a class is either non-moveable or non-copyable. But first of all, why would you need that? If we follow the classification proposed...
Trip report: Meeting C++ 2024
Last week, I got the chance to go to Berlin and participate in the 10th edition of Meeting C++ which is as far as I know the biggest C++ conference in Europe. Considering both the online and onsite...
Implicit string conversions to booleans
From C++ Brain Teasers by Anders Schau Knatten, I learned about a compiler warning offered by Clang, called -Wstring-conversion. It emits a warning when a string literal is implicitly converted int...
Use std::span instead of C-style arrays
While reading the awesome book C++ Brain Teasers by Anders Schau Knatten, I realized it might be worth writing about spans. std::span is a class template that was added to the standard library in ...
(When) performance is not about algorithmic complexity
I’ve been taking part in coding dojos either as a participant or a facilitator for the last more or less 10 years with some smaller gaps around reorganizations. Coding dojos helped me turn around m...
Different aspects of software performance
Though the main topic of this blog is not clean code or Clean Code, we discuss from time to time patterns that will lead to cleaner, more understandable, more maintainable code. Sometimes we even ...
Who does what by how much by Josh Seiden and Jeff Gothelf
The title of Who does what by how much might remind you of Benjamin P. Hardy’s Who Not How. That was one of the reasons I picked it up, but this book is completely different. It dives into the worl...