aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-10 13:48:48 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-10 23:31:37 +0100
commit9cb2a7c8d54b1f6685bc509a07104c458262cb9f (patch)
tree959e857be391eaf64457d129cb7e2e735843dba1 /gcc
parent39204ae9ddbfca710880d7f5fda48234a1e85e4e (diff)
downloadgcc-9cb2a7c8d54b1f6685bc509a07104c458262cb9f.zip
gcc-9cb2a7c8d54b1f6685bc509a07104c458262cb9f.tar.gz
gcc-9cb2a7c8d54b1f6685bc509a07104c458262cb9f.tar.bz2
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.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions