r/ProgrammerHumor • • 24d ago

Meme modernCppVsOldCpp

Post image
2.0k Upvotes

323 comments sorted by

View all comments

31

u/SelfDistinction 24d ago edited 24d ago

Ah yes, the famous

std::unique_ptr<int> ptr;
int& ref = *ptr;

So safe, so impossible to misuse.

→ More replies (22)