libstdc++: Add constexpr to std::counted_iterator post-increment (LWG 3643)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 11:41:03 +0000 (12:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 16:14:40 +0000 (17:14 +0100)
commit47b20d027ade5bfbd932724d0ea2aedee7421243
tree4c0920e66d2be2518a491d04e28870cceaeca3a8
parent97dc78d705a90c1ae83c78a7f2e24942cc3a6257
libstdc++: Add constexpr to std::counted_iterator post-increment (LWG 3643)

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (counted_iterator::operator++(int)):
Add 'constexpr' as per LWG 3643.
* testsuite/24_iterators/counted_iterator/lwg3643.cc: New test.
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3643.cc [new file with mode: 0644]