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.
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.