$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-10-20 15:22:03
Colin Rafferty wrote:
> Hi-
>
> Shouldn't the constructor in intrusive_ptr be explicit?
>
> explicit intrusive_ptr(T * p, bool add_ref = true): p_(p)
> {
> if(p_ != 0 && add_ref) intrusive_ptr_add_ref(p_);
> }
No, the constructor is implicit by design. Do you have a case where the
implicit constructor causes problems?