You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[range.range] Redundant paragraph about expression variations LWG3915 #4431
Expression variations kick in for "an expression that is non-modifying for some constant lvalue operand", but std::ranges::range's is an non-constant lvalue, so p2 is redundant.
I suppose that the change that clarified the template parameters' cv-qualification for purposes of equality-preservation and requiring additional variations happened concurrently with the change of std::ranges::range's operand from a forwarding reference to a non-constant lvalue reference.
changed the title [-][range.range] Redudant paragraph about expression variations[/-][+][range.range] Redudant paragraph about expression variations LWG3915[/+]on Apr 2, 2023
changed the title [-][range.range] Redudant paragraph about expression variations LWG3915[/-][+][range.range] Redundant paragraph about expression variations LWG3915[/+]on Apr 2, 2023
Expression variations kick in for "an expression that is non-modifying for some constant lvalue operand", but
std::ranges::range's is an non-constant lvalue, so p2 is redundant.