From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-08-27 08:01:41
"Bronek Kozicki" <brok_at_[hidden]> wrote in message news:412ED9D1.1_at_rubikon.pl...
| Howard Hinnant wrote:
| > template<class T, class D = typename detail::default_delete<T>::type>
| > class move_ptr;
| why in type? This could be stored in trampoline function, stored
| together with pointer, something like this
correct me if I'm wrong, but embedding the deleter in the type is the only way to
optimize the deleter completely away; eg, I need to be able to say
typedef move_ptr< T, MyDeleter& > move_type;
to support empty deletes without overhead.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk