
16 Sep
2009
16 Sep
'09
4:10 p.m.
On Wed, Sep 16, 2009 at 11:47 AM, Howard Hinnant <howard.hinnant@gmail.com> wrote:
const unique_ptr<MyClass, MyDeleter<A>> p(...);
scoped_ptr<MyClass, MyDeleter<A>> p(...);
-Howard
If you had the scoped_ptr as you described, which would you then use - const unique_ptr or scoped_ptr? My first thought is that scoped_ptr is better named, making it easier to understand for readers/maintainers. ? Tony