diff options
author | Ville Voutilainen <ville.voutilainen@gmail.com> | 2016-11-30 11:59:50 +0200 |
---|---|---|
committer | Ville Voutilainen <ville@gcc.gnu.org> | 2016-11-30 11:59:50 +0200 |
commit | a7da4881303a7bc9a59014f0d03cd946a9cdecec (patch) | |
tree | a174bba7556763a15e784ab3eaadd32609000ff2 /gcc/tree-ssa-loop-ivopts.c | |
parent | 40109581065366e04c547d2bff6e8f7ff5646fb8 (diff) | |
download | gcc-a7da4881303a7bc9a59014f0d03cd946a9cdecec.zip gcc-a7da4881303a7bc9a59014f0d03cd946a9cdecec.tar.gz gcc-a7da4881303a7bc9a59014f0d03cd946a9cdecec.tar.bz2 |
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 into a template parameter
and constrain.
* include/std/ostream (__is_convertible_to_basic_ostream): New.
(__is_insertable): Likewise.
(operator<<(basic_ostream<_CharT, _Traits>&&, const _Tp&)):
Turn the stream parameter into a template parameter
and constrain.
* testsuite/27_io/basic_istream/extractors_other/char/4.cc: New.
* testsuite/27_io/basic_istream/extractors_other/wchar_t/4.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_other/char/6.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/6.cc: Likewise.
From-SVN: r243006
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
0 files changed, 0 insertions, 0 deletions