]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Use alias template for iterator_category [PR110970]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Aug 2023 12:48:48 +0000 (13:48 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 10 Aug 2023 22:31:37 +0000 (23:31 +0100)
commit9cb2a7c8d54b1f6685bc509a07104c458262cb9f
tree959e857be391eaf64457d129cb7e2e735843dba1
parent39204ae9ddbfca710880d7f5fda48234a1e85e4e
libstdc++: Use alias template for iterator_category [PR110970]

This renames __iterator_category_t to __iter_category_t, for consistency
with std::iter_value_t, std::iter_difference_t and std::iter_reference_t
in C++20. Then use __iter_category_t in <bits/stl_iterator.h>, which
fixes the problem of the missing 'typename' that Clang 15 incorrectly
still requires.

libstdc++-v3/ChangeLog:

PR libstdc++/110970
* include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
__iter_category_t.
(iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
(__detail::__basic_const_iterator_iter_cat): Likewise.
* include/bits/stl_iterator_base_types.h (__iterator_category_t):
Rename to __iter_category_t.
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/include/bits/stl_iterator_base_types.h
This page took 0.060204 seconds and 6 git commands to generate.