
27 Aug
2004
27 Aug
'04
1:01 p.m.
"Bronek Kozicki" <brok@rubikon.pl> wrote in message news:412ED9D1.1@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 | http://b.kozicki.pl/cpp/ext_auto_ptr_090.zip 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. br Thorsten