aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2020-02-24 17:01:29 -0500
committerPatrick Palka <ppalka@redhat.com>2020-02-25 12:39:51 -0500
commit7f0f108309a881fe9e84a9c0b9a6f13b24a7886e (patch)
tree81ec9a34cbbe164d368075904c8e1e90a0c3e6a6 /libstdc++-v3/include
parenteb7ba6c36b8a17c79936abe26245e4bc66bb8859 (diff)
downloadgcc-7f0f108309a881fe9e84a9c0b9a6f13b24a7886e.zip
gcc-7f0f108309a881fe9e84a9c0b9a6f13b24a7886e.tar.gz
gcc-7f0f108309a881fe9e84a9c0b9a6f13b24a7886e.tar.bz2
libstdc++: LWG 3292 iota_view is under-constrained
libstdc++-v3/ChangeLog: LWG 3292 iota_view is under-constrained * include/std/ranges (iota_view): Require that _Winc models semiregular as per LWG 3292. * testsuite/std/ranges/iota/lwg3292_neg.cc: New test.
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/std/ranges1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index 0b2057c..ab8fbac 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -615,6 +615,7 @@ namespace ranges
template<weakly_incrementable _Winc,
semiregular _Bound = unreachable_sentinel_t>
requires std::__detail::__weakly_eq_cmp_with<_Winc, _Bound>
+ && semiregular<_Winc>
class iota_view : public view_interface<iota_view<_Winc, _Bound>>
{
private: