tr1::shared_ptr's constructor taking a raw pointer is
- 3. Resource Management
- from Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition
- Publisher: Addison-Wesley Professional
- Released: May 2005
Our equivalent RefCntPtr c’tor is not explicit (though I’d like to change that), and you will see code like this in our code base.
Share this highlighthttp://www.safaribooksonline.com/a/effective-c-55/2235483/