
15 Jul
2005
15 Jul
'05
10:02 a.m.
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