Boost logo

Boost :

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?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk