]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Only define __any_input_iterator for C++20
authorJonathan Wakely <jwakely@redhat.com>
Fri, 18 Jul 2025 23:08:26 +0000 (00:08 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 18 Jul 2025 23:10:10 +0000 (00:10 +0100)
commit152d4e3cf14fcf7f6e3fadbd7e0eb2b74c2233a3
treeafb1ee9065b3410df8a8d76ec7272e82461b6831
parent22d8b89689769e5efefd2c4e6dda88d9f0b2a945
libstdc++: Only define __any_input_iterator for C++20

Currently this new concept will get defined for -std=c++17 -fconcepts
but as it uses std::input_iterator, which is new in C++20, that won't
work. Guard it with __cpp_lib_concepts as well as __cpp_concepts.

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator_base_types.h (__any_input_iterator):
Only define when __cpp_lib_concepts is defined.
libstdc++-v3/include/bits/stl_iterator_base_types.h