
25 Oct
2011
25 Oct
'11
2:28 a.m.
On Mon, Oct 24, 2011 at 7:22 PM, Allan Johns <allan.johns@drdstudios.com>wrote:
You could argue that I should write a custom smart pointer to perform a deep copy in its copy constructor, but for multiple reasons I'd quite like to not have to do this
Why? That's the standard solution. You can use T instead of T*, or std::unique_ptr<T>, or a boost::ptr_map. GMan, Nick Gorski