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-06 06:06:40


On Sun, Nov 6, 2011 at 11:59 AM, John Bytheway
<jbytheway+boost_at_[hidden]> wrote:
> On 05/11/11 16:16, Olaf van der Spek wrote:
> <snip>
>> I've never used (NULL) with a smart ptr. Why would you do that? Would
>> be nice to see some real code that does that.
>
> I was curious, I searched for this usage on Google code search
> <http://www.google.com/codesearch#/>.
>
> I found one example:
>
> <http://aanf.googlecode.com/svn/trunk/aanf/asio-based/include/connection_pool.hpp>

This one boost::shared_ptr(0);?
That's shared_ptr, not shared_array.
Anyway, it looks like a very limited amount of code would be broken.

-- 
Olaf

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