Boost logo

Boost :

Subject: Re: [boost] Interest in boost.deepcopy
From: GMan (gmannickg_at_[hidden])
Date: 2011-10-24 22:28:57

On Mon, Oct 24, 2011 at 7:22 PM, Allan Johns <allan.johns_at_[hidden]>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

Boost list run by bdawes at, gregod at, cpdaniel at, john at