Skip to content

Commit 853e64f

Browse files
authored
LWG-3553 Useless constraint in split_view::outer-iterator::value_type::begin() (#1990)
1 parent 96b3678 commit 853e64f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

stl/inc/ranges

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,16 +3321,10 @@ namespace ranges {
33213321
is_nothrow_move_constructible_v<_Outer_iter>) // strengthened
33223322
: _First{_STD move(_First_)} {}
33233323

3324-
_NODISCARD constexpr auto begin() const requires copyable<_Outer_iter> {
3324+
_NODISCARD constexpr auto begin() const {
33253325
return _Inner_iter<_Const>{_First};
33263326
}
33273327

3328-
// clang-format off
3329-
_NODISCARD constexpr auto begin() requires (!copyable<_Outer_iter>) {
3330-
return _Inner_iter<_Const>{_STD move(_First)};
3331-
}
3332-
// clang-format on
3333-
33343328
_NODISCARD constexpr default_sentinel_t end() const noexcept {
33353329
return default_sentinel;
33363330
}

0 commit comments

Comments
 (0)