]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make std::common_iterator completely constexpr-able (LWG 3574)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Jan 2022 16:51:49 +0000 (16:51 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 11 Jan 2022 13:22:34 +0000 (13:22 +0000)
commit11d3e8f4364b05e2746689c6d0f573594f6ddb74
treeab67ccc247eb87037a3c019b1b5a3c18acf6f106
parentaccccf7dee8e040f25421f4c5f41894c8ea974c1
libstdc++: Make std::common_iterator completely constexpr-able (LWG 3574)

This library issue was approved in the October 2021 plenary.

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (common_iterator): Add constexpr
to all member functions (LWG 3574).
* testsuite/24_iterators/common_iterator/1.cc: Evaluate some
tests as constant expressions.
* testsuite/24_iterators/common_iterator/2.cc: Likewise.
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/common_iterator/1.cc
libstdc++-v3/testsuite/24_iterators/common_iterator/2.cc