top of page
The Big C++ Blog



C++26 Reflection: Can the Compiler Finally Help Us Parse Configuration?
Hi C++ friends 👋 Today we continue exploring one of the most exciting features coming with C++26: static #reflection. In previous posts, we looked at how reflection can help us build “magic enum” style utilities, and even how we can generate aggregate-like structures from text at compile time. This time, let’s look at something much more practical. And much more painful. Reading configuration from command-line parameters. And by “painful,” I mean the #boilerplate kind. 🙂 Th


C++26 #embed and Reflection: When the Compiler Starts Doing More Work for You
Hi C++ friends 👋 Today we are going to explore another feature from the future of C++. Or maybe not exactly the future anymore. C++26 is getting closer, compilers are slowly catching up, and some of the things we used to describe as “maybe one day” are starting to become real tools we can experiment with today. One of those tools is #embed. And when we combine it with C++ reflection, things become very interesting. Not “interesting” like undefined behavior interesting. Hopef


PMR vs std::vector When “More Advanced” Gets Slower
Modern C++ gives us incredibly powerful tools, and Polymorphic Memory Resources (PMR) is one of the most exciting additions from C++17. Custom allocators, memory pools, stack-backed buffers it all sounds like a guaranteed performance win. But as always in performance engineering…👉 it depends. In this post, I ran a simple benchmark to answer a practical question: Does using PMR with std::vector and std::string actually make things faster? The answer is surprisingly nuanced a


push_back() vs emplace_back(): The Benchmark That Made Me Delete a Post
I had to delete my previous post because the benchmark lied to me. That is already a very C++ way to start a day. The topic sounded simple enough: compare push_back() and emplace_back() for std::vector<std::string>, show the results for C++11 and C++23, and extract a nice practical lesson. Simple, right? Well, not quite. At first, I used older compilers on Quick-Bench and got results that looked strange. Strange enough that after double-checking, I realized I had stepped on a
bottom of page