This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unique_ptr::get_deleter


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]