Subject: Re: [boost] make_shared_array
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2012-11-03 08:44:04
On Nov 2, 2012, at 9:33 AM, Giovanni Piero Deretta <gpderetta_at_[hidden]> wrote:
> On Fri, Nov 2, 2012 at 12:37 AM, Peter Dimov <lists_at_[hidden]> wrote:
>> Olaf van der Spek wrote:
>> Does Glen's make_shared_array have variants for both initialized and
>>> uninitialized allocations (for builtin types)?
>> This is a thorny issue. Some people want initialized allocations, some don't.
> what about a boost::uninitialized object which is implicitly convertible to
> any T and will return an uninitialized T?
That would only work for built-in types and for UDTs with a default ctor that leaves the data members uninitialized.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk