Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<ranges>: Remove "per LWG" comments #1967

Merged
merged 1 commit into from
Jun 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions stl/inc/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace ranges {

// clang-format off
// CONCEPT ranges::viewable_range
template <class _Rng> // Per proposed resolution of LWG-3481
template <class _Rng>
concept viewable_range = range<_Rng>
&& ((view<remove_cvref_t<_Rng>> && constructible_from<remove_cvref_t<_Rng>, _Rng>)
|| (!view<remove_cvref_t<_Rng>> && borrowed_range<_Rng>));
Expand Down Expand Up @@ -796,7 +796,7 @@ namespace ranges {
}
}

constexpr iota_view(_It _First, _Se _Last) noexcept( // Per LWG-3523
constexpr iota_view(_It _First, _Se _Last) noexcept(
is_nothrow_move_constructible_v<_Wi>&& is_nothrow_move_constructible_v<_Bo>) // strengthened
: _Value(_STD move(_First._Current)), _Bound(_STD move(_Bound_from(_Last))) {}

Expand Down Expand Up @@ -2843,7 +2843,7 @@ namespace ranges {
// clang-format off
friend constexpr void iter_swap(const _Iterator& _Left, const _Iterator& _Right) noexcept(
noexcept(_RANGES iter_swap(_Left._Inner, _Right._Inner)))
requires indirectly_swappable<_InnerIter> { // per LWG-3517
requires indirectly_swappable<_InnerIter> {
// clang-format on
#if _ITERATOR_DEBUG_LEVEL != 0
_Left._Check_dereference();
Expand Down Expand Up @@ -3258,7 +3258,7 @@ namespace ranges {
}

constexpr decltype(auto) operator++(int) {
if constexpr (forward_range<_BaseTy>) { // per LWG-3532
if constexpr (forward_range<_BaseTy>) {
auto _Tmp = *this;
++*this;
return _Tmp;
Expand Down