aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2020-08-26 21:52:58 -0400
committerPatrick Palka <ppalka@redhat.com>2020-08-26 21:52:58 -0400
commit4be16d1c1cfa6d151d2853ce509c1a797189c9ad (patch)
treeeddddfb14e9806e18e739b3618ae1132705fa1e1 /gcc/expr.c
parent97ab5daa6c1186d3b10872cc1d5b05da247d102c (diff)
downloadgcc-4be16d1c1cfa6d151d2853ce509c1a797189c9ad.zip
gcc-4be16d1c1cfa6d151d2853ce509c1a797189c9ad.tar.gz
gcc-4be16d1c1cfa6d151d2853ce509c1a797189c9ad.tar.bz2
libstdc++: elements_view's sentinel and iterator not comparable [LWG 3406]
This implements the proposed resolution for LWG 3406, and adds a testcase for the example from P1994R1. libstdc++-v3/ChangeLog: * include/std/ranges (elements_view::begin): Adjust constraints. (elements_view::end): Likewise. (elements_view::_Sentinel::operator==): Templatize to take both _Iterator<true> and _Iterator<false>. (elements_view::_Sentinel::operator-): Likewise. * testsuite/std/ranges/adaptors/elements.cc: Add testcase for the example from P1994R1. * testsuite/std/ranges/adaptors/lwg3406.cc: New test.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions