BlogC++A strongly typed boolToday I like to share a pattern I have used for some time. The pattern is generally well-received whenever I present it during one of my training courses. I still don't know [...]C++Visiting a std::variant safelyI assume you all know C++17's type-safe replacement for unions: std::variant. Here you look at a great replacement for unions as it knows the active type and destructs that object [...]C++constexpr functions: optimization vs guaranteeThe feature of constant evaluation is nothing new in 2023. You have constexpr available since C++11. Yet, in many of my classes, I see that people still struggle with constexpr [...]C++Evaluation order in C++ and uniform initializationIn today's post, you learn or get reminded about an interesting benefit of uniform initialization. [...]C++push_back vs emplace_back: When to use whatIn today's post, I like to address a topic already discussed by others. However, in classes or code reviews, I still see the confusion. That's why I want to highlight this once [...]C++static, inline, or an unnamed namespace what's the differenceToday's post teaches the difference between a function declared static, inline, or in an unnamed namespace. "What of these should I use when?" is a question that occasionally [...]C++C++ Insights Vim plugin availableGreat news for all VIM lovers FreedWu developed a Vim plugin to use C++ Insights in your favorite editor. The plugin is available on GitHub: github.com/Freed-Wu/cppinsights.vim. [...]C++Equality of a string class that is only instantiable at compile-timeToday's post continues with last month's post A string class that is only instantiable at compile-time. [...]C++A string class that is only instantiable at compile-timeDo you know this, sometimes you have a class that should only be instantiable at compile-time? By that, you can build several assumptions on such a class. For example, that the [...]C++Use your programming languageIn today's post, you will learn about what that language part of programming language means. [...]Posts navigation〈 1 2 3 4 5 6 7 8 〉