From: Patrick Palka Date: Wed, 5 May 2021 16:07:52 +0000 (-0400) Subject: libstdc++: Don't constrain some enable_borrowed_range specializations X-Git-Tag: basepoints/gcc-13~7791 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b71ca688b0ae14d3a35dab12f1f11a2a6292b7d;p=thirdparty%2Fgcc.git 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): Remove constraints on this partial specialization. * include/std/ranges (enable_borrowed_range): Likewise. --- diff --git a/libstdc++-v3/include/bits/ranges_util.h b/libstdc++-v3/include/bits/ranges_util.h index 589886eb1575..b73fc121e0ff 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 _Sent, - subrange_kind _Kind> + template inline constexpr bool enable_borrowed_range> = true; diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges index f21e08a36e3b..2305bd200a53 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 + template inline constexpr bool enable_borrowed_range> = true;