unique_ptr::get_deleter

Paolo Carlini paolo.carlini@oracle.com
Tue Mar 2 14:03:00 GMT 2010


Hi,
> Does anyone remember why our unique_ptr::get_deleter is defined as
>
> typename std::add_lvalue_reference<deleter_type>::type
> get_deleter();
>
> rather than the simpler:
>
> deleter_type&
> get_deleter();
>   
unless Chris replies something over the next day or so, I say let's
clean up that, I don't see anything wrong with simply implementing the
letter of the WD.

Thanks,
Paolo.



More information about the Libstdc++ mailing list