|
Boost : |
From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-07-15 05:02:16
Just wondered why intrusive_ptr(T * p, bool add_ref = true); isn't
explicit? The second arg defaults so (using bcc32-5.6.4), an
intrusive_ptr can be explicitly constructed from a raw ptr. Is this
intended when shared_ptr is designed to prevent this?
Cheers
Russell
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk