3 ms·
Doesn't std::shared_pointer help with the copy constructor issue?
by fiddlerwoaroof 9y ago
Doesn't std::shared_pointer help with the copy constructor issue?
- int_19h 9y agoIf you mean using shared_ptr everywhere, then 1) this would be extremely non-idiomatic C++, 2) you can still forget to do so, and 3) the moment you do, the language makes it ridiculously easy to implicitly copy something.