commit | 152d4e3cf14fcf7f6e3fadbd7e0eb2b74c2233a3 | [log] [tgz] |
---|---|---|
author | Jonathan Wakely <jwakely@redhat.com> | Sat Jul 19 00:08:26 2025 +0100 |
committer | Jonathan Wakely <redi@gcc.gnu.org> | Sat Jul 19 00:10:10 2025 +0100 |
tree | afb1ee9065b3410df8a8d76ec7272e82461b6831 | |
parent | 22d8b89689769e5efefd2c4e6dda88d9f0b2a945 [diff] |
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.