top of page
The Big C++ Blog



A Tiny Coroutine, a Big Crash💥
How One Line of C++ Caused a Segmentation Fault Coroutines are one of the most exciting additions to modern C++. They promise cleaner async code, better readability, and fewer callback pyramids. But they also come with something very C++-like: 👉 lifetime rules you must  understand In this post, we’ll look at a tiny coroutine  that looks perfectly safe and still crashes with a segmentation fault. The Innocent Code Let’s start with a minimal example: #include <coroutine> #incl


Exploring enable_shared_from_this
Welcome back, C++ enthusiasts!  After a long break, I’m excited to share the latest installment in my C++Next series. In this post,...
bottom of page