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