-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ranges] Apply resolution of LWG3502 to elements_view #1878
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
Conversation
stl/inc/ranges
Outdated
_NODISCARD constexpr decltype(auto) operator*() const | ||
noexcept(noexcept(_STD get<_Index>(*_Current))) /* strengthened */ { | ||
return _STD get<_Index>(*_Current); | ||
if constexpr (is_reference_v<range_reference_t<_Base>>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I decided against implementing the exposition only get-element method
FYI: I've pushed a commit that fixes non-functional nitpicks in the test code, a bug in the conditional |
Thanks for implementing this LWG issue resolution! All shall love conformance and despair! 😻 ✔️ 🚀 |
Fixes #1685