libstdc++: Fix missing subsumption in std::iterator_traits [PR 97935]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 25 Nov 2020 17:18:44 +0000 (17:18 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 25 Nov 2020 17:22:47 +0000 (17:22 +0000)
commit9d908b7fc475b351622fa5630d4874068c789d70
tree7c29046c94902dfca5068270f8b5b4aad49bbbc2
parent1a8d1f54de371de88b2604d8c0e4e01306be8870
libstdc++: Fix missing subsumption in std::iterator_traits [PR 97935]

libstdc++-v3/ChangeLog:

PR libstdc++/97935
* include/bits/iterator_concepts.h (__detail::__iter_without_category):
New helper concept.
(__iterator_traits::__cat): Use __detail::__iter_without_category.
* testsuite/24_iterators/associated_types/iterator.traits.cc: New test.
libstdc++-v3/include/bits/iterator_concepts.h
libstdc++-v3/testsuite/24_iterators/associated_types/iterator.traits.cc [new file with mode: 0644]