Skip to content

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

Closed
@sdutoit

Description

@sdutoit
Contributor

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.

Activity

added a commit that references this issue on Apr 15, 2013
fc42783
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tinyAn issue with a small change; with "cwg" label: can be applied editorially after CWG consent.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sdutoit

        Issue actions

          [expr.cond]/3 typo - rvalue -> prvalue · Issue #55 · cplusplus/draft