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

[expr.cond]/3 typo - rvalue -> prvalue #55

Closed
sdutoit opened this issue Apr 15, 2013 · 0 comments
Closed

[expr.cond]/3 typo - rvalue -> prvalue #55

sdutoit opened this issue Apr 15, 2013 · 0 comments
Labels
tiny An issue with a small change; with "cwg" label: can be applied editorially after CWG consent.

Comments

@sdutoit
Copy link
Contributor

sdutoit commented Apr 15, 2013

From an email to cxxeditor@:

In subclause 5.16 [expr.cond] paragraph 3:

Each bullet in the following is probably meant to be exclusive of the others. The third bullet should use "prvalue" instead of "rvalue".

  • If E2 is an lvalue: E1 can be converted to match E2 if E1 can be implicitly converted (Clause 4) to the type "lvalue reference to T2", subject to the constraint that in the conversion the reference must bind directly (8.5.3) to an lvalue.
  • If E2 is an xvalue: E1 can be converted to match E2 if E1 can be implicitly converted to the type "rvalue reference to T2", subject to the constraint that the reference must bind directly.
  • If E2 is an rvaluea prvalue or if neither of the conversions above can be done and at least one of the operands has (possibly cv-qualified) class type

Mike Miller confirmed as editorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tiny An issue with a small change; with "cwg" label: can be applied editorially after CWG consent.
Projects
None yet
Development

No branches or pull requests

1 participant