-
Notifications
You must be signed in to change notification settings - Fork 769
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
[expr]/12 optional conversion #1597
Comments
The proposed rewording is incorrect. Materialization applies to all discarded prvalues, whether the prvalue is because the expression started off as a prvalue or because the lvalue-to-rvalue conversion was applied by the previous sentence to a volatile-qualified glvalue. |
"If the expression was a prvalue, or becomes a prvalue after applying the lvalue-to-rvalue conversion, the temporary materialization conversion is applied." ? "The temporary materialization conversion is applied if, after applying the lvalue-to-rvalue conversion if necessary, the expression is a prvalue."? "after conditionally applying the lvalue-to-rvalue conversion"? |
The wording currently reads:
"this optional conversion" refers to the lvalue-to-rvalue conversion. Optional isn't a good word here, since the conversion itself is mandatory - just only conditionally applied. Maybe "If this conversion is applied and the resulting expression is a prvalue, the temporary materialization conversion is applied"? Or something along those lines.
The text was updated successfully, but these errors were encountered: