Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] scoped_array / shared_array (size_t)constructor
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-11-05 12:17:12


On Sat, Nov 5, 2011 at 1:09 PM, Peter Dimov <pdimov_at_[hidden]> wrote:
> Olaf van der Spek wrote:
>>
>> > well, is the expected behavior. Every smart pointer tries to mimic raw
>> > pointers and the constructor ambiguity reduces this similarity. I also >
>> > don't
>> > want to update my code when it breaks.
>>
>> What's the problem with updating your code?
>
> It's not fun, especially when the cause is a component that has been stable
> for what, a decade now?

Are you using explicit construction with NULL or 0? If so, maybe you
could tell us why you're doing that instead of using the default
constructor?

-- 
Olaf

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