2 ms·
When you have complicated ownership cases, you have a fundamental design problem. The Standard Library is not a place to find patches for those. Likewise, mult
by ncmncm 8y ago
When you have complicated ownership cases, you have a fundamental design problem. The Standard Library is not a place to find patches for those.
Likewise, multi-threaded race problems.
- xiphias2 8y agoYou can't use unique_ptr for everything if you want to have performant code. It needs heap allocation, which slows down the code base compared to stack allocated variables, in which case tracking the ownership is much more complex, but it's worth it, especially if you have millions of users.