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>
Fri, 27 May 2022 17:32:52 +0000 (18:32 +0100)
commit7be1dd924db806175ddb3c4eb34390d4981cbf11
tree49e03b2d77121248f7a2753ae0f73750fc162e8c
parent5647e401bb8656d1d9897c7a536bf00ff50fd20b
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.

(cherry picked from commit 47b20d027ade5bfbd932724d0ea2aedee7421243)
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3643.cc [new file with mode: 0644]