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
[range.slide.view] Replace conditional with call to max #5250
Comments
I don't think requiring mental overload resolution among the multiple overloads of |
That's |
It's not. We are in |
It can be simpler: return to-unsigned-like(max({}, ranges::distance(base_) - n_ + 1));
which should alleviate the concerns of #5250 (comment). |
IIRC, when inside a nested namespace, the convention is to qualify "overloaded" identifiers, like |
Actually, that only alleviates my original, left-unsaid readability concern by replacing |
[range.slide.view] adds (via #5249)
Which can be simplified to
The text was updated successfully, but these errors were encountered: