Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-07-15 20:52:25

At 08:56 AM 7/15/2002, Peter Dimov wrote:

>From: "Ed Brey" <brey_at_[hidden]>
>> I like the operator! and implicit pointer conversion operators that are
>part of the current
>> shared_ptr. They are convenient for testing whether the pointer is
>or not with minimal
>> verbosity. I think it would be a good idea to add the same to
>and scoped_array.
>> What do others think?
>I just want to point out that the shared_ptr conversion to bool is not
>merely syntactic sugar. It allows shared_ptr declarations in conditions:
>if(shared_ptr<X> px = make_shared(wp))
>It'd probably be a good idea to add the conversion to scoped_* and
>shared_array for consistency (where it _is_ a syntactic sugar. :-) )

Agreed, in case you want one more opinion.


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