Boost logo

Boost :

Subject: Re: [boost] make_shared_array
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2012-11-02 21:19:18


On Fri, Nov 2, 2012 at 7:03 PM, Peter Dimov <lists_at_[hidden]> wrote:
> Nathan Crookston wrote:
>> While I'd prefer to only initialize if an initializer is given (like
>> std::vector<int>), ...
>
>
> std::vector<int> initializes to zero. :-)

Oops, right. I forgot it uses T() to initialize in that case. Then
no complaints given a noinit version.

Thanks,
Nate


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