This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: unique_ptr::get_deleter
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, Chris Fairles <chris dot fairles at gmail dot com>
- Date: Tue, 02 Mar 2010 15:03:13 +0100
- Subject: Re: unique_ptr::get_deleter
- References: <4348dea51003011343y10deba65m83c9dcf69c2d4190@mail.gmail.com>
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.