$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-07-15 07:56:03
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 null
or not with minimal
> verbosity. I think it would be a good idea to add the same to scoped_ptr
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. :-) )