Boost logo

Boost :

Subject: Re: [boost] [Smart Ptr] make_shared slower than shared_ptr(new) on VC++9 (and 10) with fix
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2012-04-30 18:51:01


On 30/04/12 22:22, Mathias Gaunard wrote:
> On 30/04/12 22:47, Nathan Ridge wrote:
>
>> But even if there was a way to tell, how would you use an object like
>> that without aggregating it (and thus having it take up space) or
>> inheriting from it (which is not allowed)?
>
> You would construct it whenever you need it.

By my reading, neither a shared_ptr deleter nor a container allocator is
required to be DefaultConstructible in general.

John Bytheway


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk