This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] fix libstdc++/57336
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Daniel Krügler <daniel dot kruegler at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 21 May 2013 09:35:55 +0100
- Subject: Re: [patch] fix libstdc++/57336
- References: <CAH6eHdSmvVwgtpFcoU+faEKy=Eb8G_ea4Yy2RYz1pG2tEh6Tog at mail dot gmail dot com> <CAGNvRgCXCAseoZGMyL1BysEKDt3u3Q_Fut+7-iNRyjVb4vtuhg at mail dot gmail dot com>
On 21 May 2013 09:24, Daniel Krügler wrote:
> 2013/5/21 Jonathan Wakely <jwakely.gcc@gmail.com>:
>> This broke due to some front end changes that disallow forming
>> function types that return abstract types. std::reference_wrapper
>> always passes an lvalue reference to __invoke so it's correct to use
>> an lvalue reference as the result_of's template argument.
>
> I agree. This was
>
> http://cplusplus.github.io/LWG/lwg-defects.html#2017
>
> wasn't it?
Ah yes, thanks! I'd fixed the signature in reference_wrapper but not
its __invoke() helper.
It's fixed on trunk and the 4.8 branch now.
>
> - Daniel