Re: [v3 PATCH] Implement LWG 2534, Constrain rvalue stream operators.

2016-11-30 Thread David Edelsohn
I believe that this broke g++.old-deja/g++.law/ctors10.C invalid initialization of reference of type 'Klasse::Err&' from expression of type 'std::basic_ostream::__ostream_type {aka std::basic_ostream} - David

Re: [v3 PATCH] Implement LWG 2534, Constrain rvalue stream operators.

2016-11-30 Thread Ville Voutilainen
On 30 November 2016 at 16:59, David Edelsohn wrote: > I believe that this broke g++.old-deja/g++.law/ctors10.C > > invalid initialization of reference of type 'Klasse::Err&' from > expression of type 'std::basic_ostream::__ostream_type {aka > std::basic_ostream} I'll take a look.

Re: [v3 PATCH] Implement LWG 2534, Constrain rvalue stream operators.

2016-11-29 Thread Jonathan Wakely
On 27/11/16 20:50 +0200, Ville Voutilainen wrote: Implement LWG 2534, Constrain rvalue stream operators. * include/std/istream (__is_convertible_to_basic_istream): New. (__is_extractable): Likewise. (operator>>(basic_istream<_CharT, _Traits>&&, _Tp&&)): Turn the stream parameter in

Re: [v3 PATCH] Implement LWG 2534, Constrain rvalue stream operators.

2016-11-27 Thread Ville Voutilainen
On 27 November 2016 at 20:50, Ville Voutilainen wrote: > * include/std/ostream /__is_convertible_to_basic_ostream): New. And yeah, I have fixed that typo in my ChangeLog already, it should indeed be * include/std/ostream (__is_convertible_to_basic_ostream): New.

[v3 PATCH] Implement LWG 2534, Constrain rvalue stream operators.

2016-11-27 Thread Ville Voutilainen
Tested on Linux-x64. 2016-11-27 Ville Voutilainen Implement LWG 2534, Constrain rvalue stream operators. * include/std/istream (__is_convertible_to_basic_istream): New. (__is_extractable): Likewise. (operator>>(basic_istream<_CharT, _Traits>&&, _Tp&&)): Turn the stream para