aboutsummaryrefslogtreecommitdiff
path: root/libphobos
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-04-08 16:45:22 -0400
committerPatrick Palka <ppalka@redhat.com>2021-04-08 16:45:22 -0400
commitc7fe68f3652ceefaf297611d1e64c8d9da43ad93 (patch)
tree7994ac53a4b58616cc7793a8f3f69c824670ce5c /libphobos
parentbe8d5f99f50cf282c21632e60fe1d8857bb5a554 (diff)
downloadgcc-c7fe68f3652ceefaf297611d1e64c8d9da43ad93.zip
gcc-c7fe68f3652ceefaf297611d1e64c8d9da43ad93.tar.gz
gcc-c7fe68f3652ceefaf297611d1e64c8d9da43ad93.tar.bz2
libstdc++: Fix elements_view::operator* and operator[] [LWG 3502]
While we're modifying elements_view, this also implements the one-line resolution of LWG 3492. libstdc++-v3/ChangeLog: * include/std/ranges (__detail::__returnable_element): New concept. (elements_view): Use this concept in its constraints. Add missing private access specifier. (elements_view::_S_get_element): Define as per LWG 3502. (elements_view::operator*, elements_view::operator[]): Use _S_get_element. (elements_view::operator++): Remove unnecessary constraint as per LWG 3492. * testsuite/std/ranges/adaptors/elements.cc (test05): New test.
Diffstat (limited to 'libphobos')
0 files changed, 0 insertions, 0 deletions