]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use __cpp_lib_concepts in std::reverse_iterator [PR104098]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Jan 2022 15:34:24 +0000 (15:34 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 18 Jan 2022 16:31:03 +0000 (16:31 +0000)
commite13e95bd274148a825bc9527efac49e99080dd64
tree73e8cc16b9e64cfcf8d34a384aa9e674411adef8
parent302343d8dd30e34516f74a61ec758d80a6c4d1db
libstdc++: Use __cpp_lib_concepts in std::reverse_iterator [PR104098]

We should not assume that std::iter_value_t etc. are defined
unconditionally for C++20 mode.

libstdc++-v3/ChangeLog:

PR libstdc++/104098
* include/bits/stl_iterator.h (reverse_iterator): Check
__cpp_lib_concepts instead of __cplusplus.
libstdc++-v3/include/bits/stl_iterator.h