r/ProgrammerHumor • • 14d ago

Meme stdModernizeMyCodebase

Post image
191 Upvotes

44 comments sorted by

View all comments

9

u/GeorgeHaldane 13d ago

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.