aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-05-05 12:07:52 -0400
committerPatrick Palka <ppalka@redhat.com>2021-05-05 12:07:52 -0400
commit2b71ca688b0ae14d3a35dab12f1f11a2a6292b7d (patch)
treeb23131e02c9f3ccc905e25582264dcc970955ff8
parent2663727d853438ee4d67b200a08f94a318745486 (diff)
downloadgcc-2b71ca688b0ae14d3a35dab12f1f11a2a6292b7d.zip
gcc-2b71ca688b0ae14d3a35dab12f1f11a2a6292b7d.tar.gz
gcc-2b71ca688b0ae14d3a35dab12f1f11a2a6292b7d.tar.bz2
libstdc++: Don't constrain some enable_borrowed_range specializations
These constraints are already present on the template we're partially specializing for. libstdc++-v3/ChangeLog: * include/bits/ranges_util.h (enable_borrowed_range<subrange>): Remove constraints on this partial specialization. * include/std/ranges (enable_borrowed_range<iota_view>): Likewise.
-rw-r--r--libstdc++-v3/include/bits/ranges_util.h3
-rw-r--r--libstdc++-v3/include/std/ranges2
2 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/include/bits/ranges_util.h b/libstdc++-v3/include/bits/ranges_util.h
index 589886e..b73fc12 100644
--- a/libstdc++-v3/include/bits/ranges_util.h
+++ b/libstdc++-v3/include/bits/ranges_util.h
@@ -381,8 +381,7 @@ namespace ranges
return __r.end();
}
- template<input_or_output_iterator _It, sentinel_for<_It> _Sent,
- subrange_kind _Kind>
+ template<typename _It, typename _Sent, subrange_kind _Kind>
inline constexpr bool
enable_borrowed_range<subrange<_It, _Sent, _Kind>> = true;
diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index f21e08a..2305bd2 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -586,7 +586,7 @@ namespace ranges
== __detail::__is_signed_integer_like<_Bound>))
iota_view(_Winc, _Bound) -> iota_view<_Winc, _Bound>;
- template<weakly_incrementable _Winc, semiregular _Bound>
+ template<typename _Winc, typename _Bound>
inline constexpr bool
enable_borrowed_range<iota_view<_Winc, _Bound>> = true;