r/ProgrammerHumor • • Oct 12 '26

Meme stdModernizeMyCodebase

Post image
190 Upvotes

44 comments sorted by

View all comments

9

u/GeorgeHaldane Oct 14 '26

If anything modern C++ is about stack allocation and value semantics.

Most shared pointers in the wild are a consequence of people writing Java-in-C++ and heap allocating everything for no reason, there aren't that many cases where shared ownership is actually the intended behavior.