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


On Tue, Mar 2, 2010 at 9:03 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> 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.
>

Can't think of any particular reason off the top of my head. If test
cases pass, giv'r.

Chris


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