Logo

Blog


C++

unique_ptr and the pointer to implementation idiom

Last time, I wrote about unique_ptr and PImpl, demonstrating why you can't use a unique_ptr for PImpl. This time, I'd like to show you how you can make unique_ptr work with PImpl. [...]
C++ Insights

C++ Insights Episode 55: References are no pointers!

I published a new C++ insights episode: References are no pointers!. [...]
C++

Smart pointers and the pointer to implementation idiom

A post I wrote back in 2023 When an empty destructor is required resulted in feedback that I'd like to address in today's post. [...]
C++ Insights

C++ Insights Episode 54: You can't force a move!

I published a new C++ insights episode: You can't force a move!. [...]
C++

Understanding the inner workings of C++ smart pointers - The shared_ptr

After last months Understanding the inner workings of C++ smart pointers - The unique_ptr with custom deleter you're curious about how the shared_ptr is implemented? Great! Here [...]
Training

Write modern code with features of C++17 and C++20

When you transition from older C++ standards like C++11 or C++14 to the latest C++17 and C++20 it can be a tough journey. It's essential for writing clean and easy-to-maintain [...]
C++ Insights

C++ Insights Episode 53: Mastering C++23: Leveraging if consteval for more constexpr functions

I published a new C++ insights episode: Mastering C++23: Leveraging if consteval for more constexpr functions. [...]
Training

CppCon Academy Workshop

I'm thrilled to let you know that I'll give the workshop "Modern C++: When Efficiency Matters" as part of the CppCon Academy in Aurora, CO. [...]
C++

Understanding the inner workings of C++ smart pointers - The unique_ptr with custom deleter

Let's continue where I left off last time. You've seen a simple implementation of a unique_ptr in Understanding the inner workings of C++ smart pointers - The unique_ptr. Now, [...]
C++ Insights

C++ Insights Episode 52: The Power of std::is_constant_evaluated(): Elevating Your Constexpr Code

I published a new C++ insights episode: The Power of std::is_constant_evaluated(): Elevating Your Constexpr Code. [...]