4 ms·
Usually std::unique_ptr or in a container like std::vector. Being too afraid of std::shared_ptr can lead to using references or raw pointers in the wrong place
by symmetricsaurus 5y ago
Usually std::unique_ptr or in a container like std::vector.
Being too afraid of std::shared_ptr can lead to using references or raw pointers in the wrong places. That way leads to the usual memory safety issues.
- spacechild1 5y agoI was arguing for unique_ptr, not against. Parent was complaining about it.