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 07:08:48

On Sat, Nov 5, 2011 at 9:00 AM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
>> Why? What's the benefit over using the default constructor?
> I want this for interface consistency which can be useful in generic code and,

Do you know existing generic code that'd be affected and couldn't use
the default constructor?

> 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?

Also, could you address how you'd implement this in C++03?


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