libstdc++: missing constexpr for __[nm]iter_base [PR102358]
authorPatrick Palka <ppalka@redhat.com>
Thu, 21 Oct 2021 16:13:35 +0000 (12:13 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 21 Oct 2021 16:13:35 +0000 (12:13 -0400)
commit5f7976f65b45c457b57bfc2c55ec845771e0d3c2
tree975c5044209326f7bccca48bf28eafbd3b2ce3b5
parent9262ae450d6a57837c58645c2ee66365bbe08338
libstdc++: missing constexpr for __[nm]iter_base [PR102358]

PR libstdc++/102358

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (__niter_base): Make constexpr
for C++20.
(__miter_base): Likewise.
* testsuite/25_algorithms/move/constexpr.cc: New test.
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/25_algorithms/move/constexpr.cc [new file with mode: 0644]