CppCast cover image

Holiday Special with Phil Nash and Timur Doumler

CppCast

00:00

How to Reinterpret Cast Objects in C++

In COSA 20, it says certain functions implicitly create objects. The problem still was, what do we do if the memory comes from a function that isn't blessed magically? So now you can explicitly create them. You're going to explicitly tell the compiler, I want to start the lifetime of a widget without actually calling a widget constructor there and just interpret those bits as a widget. That's the new thing that we're going to get in COSA 23.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app