
26 Jan
2009
26 Jan
'09
5:48 p.m.
On Mon, Jan 26, 2009 at 1:47 AM, Alexander
Is this OK to specialize boost::checked_delete to control deletion with scoped_ptr ? Or to specialize some boost::scoped_ptr members for the same purpose ?
I don't see checked_delete mentioned in the scoped_ptr documentation, so the answer to your first question seems to be "no". As for specializations, scoped_ptr is so simple that you'd be better off writing your own class template to release the object differently, IMO. You don't say much about your use case but shared_ptr with custom deleter and/or allocator may be exactly what you need. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode