]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Adjust feature test in <istream> and <ostream>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 14 Nov 2023 15:48:03 +0000 (15:48 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 16 Nov 2023 08:00:36 +0000 (08:00 +0000)
commit17aca35c0ecd23de40c1352c0a7220bad3f11cfc
tree40d5014739b1e406686c29a752da20dc0d1b148d
parentf158bd511df1f55ebbbc0df3dee52c4400291984
libstdc++: Adjust feature test in <istream> and <ostream>

We don't need any library concepts to define the constraints for rvalue
stream overloads, only compiler support. So change the test from using
__cpp_lib_concepts to __cpp_concepts >= 201907L.

libstdc++-v3/ChangeLog:

* include/std/istream (__rvalue_stream_extraction_t): Test
__cpp_concepts instead of __cpp_lib_concepts.
* include/std/ostream (__derived_from_ios_base): Likewise.
(__rvalue_stream_insertion_t): Likewise.
libstdc++-v3/include/std/istream
libstdc++-v3/include/std/ostream