Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] scoped_array / shared_array (size_t) constructor
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2011-11-06 05:59:06

On 05/11/11 16:16, Olaf van der Spek wrote:
> 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

I found one example:


Clearly this could be changed to the default constructor, but it
evidently does happen that people pass 0.

I can't quite figure out Google code search's interface, but I think
this is the only meaningful hit for any of my searches.

John Bytheway

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