libstdc++: Use std::construct_at in std::common_iterator [PR103992]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Jan 2022 16:58:18 +0000 (16:58 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 14 Jan 2022 10:14:24 +0000 (10:14 +0000)
commitd67ba1dce9796bff177e52e2bbb68bfa2c69a884
tree257d361f53e83031def01bf565ca139d957da1dc
parent7f390f11b445ee36cce5c5f1d5779baee817f0af
libstdc++: Use std::construct_at in std::common_iterator [PR103992]

This should have been done as part of the LWG 3574 changes.

libstdc++-v3/ChangeLog:

PR libstdc++/103992
* include/bits/stl_iterator.h (common_iterator): Use
std::construct_at instead of placement new.
* testsuite/24_iterators/common_iterator/1.cc: Check copy
construction is usable in constant expressions.
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/common_iterator/1.cc