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.
This commit is contained in:
parent
2663727d85
commit
2b71ca688b
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue