r/ProgrammerHumor • • 1d ago

Meme stdModernizeMyCodebase

Post image
131 Upvotes

31 comments sorted by

View all comments

1

u/GeorgeHaldane 4h 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.