$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-14 12:05:15
From: "Beman Dawes" <bdawes_at_[hidden]>
>
> For years I've avoided implicit conversions to bool, which usually means
> adding "== 0" or "!= 0", but sometimes "? ... : ..."
There is one (important) context where the implicit conversion cannot be
avoided: declarations in conditions.
if(X * p = dynamic_cast<X*>(q)) {}
if(shared_ptr<X> p = shared_dynamic_cast<X>(q)) {}
if(shared_ptr<X> p = make_shared(wp)) {}