Created on 2009-04-06.00:00:00 last changed 179 months ago
[Voted into WP at March, 2010 meeting as part of document N3055.]
Proposed resolution (July, 2009):
Change the example in Clause 7 [expr] paragraph 6 as follows:
[Example:
struct A { }; A&& operator+(A, A); A&& f(); A a; A&& ar = static_cast<A&&>(a);The expressions f() and a + a are rvalues of type A. The expression ar is an lvalue of type A. —end example]
The adoption of paper N2844 made it ill-formed to attempt to bind an rvalue reference to an lvalue, but the example in Clause 7 [expr] paragraph 6 was overlooked in making this change:
struct A { }; A&& operator+(A, A); A&& f(); A a; A&& ar = a;
The last line should be changed to use something like static_cast<A&&>(a).
(See also issue 847.)
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-03-29 00:00:00 | admin | set | messages: + msg2667 |
2010-03-29 00:00:00 | admin | set | status: review -> cd2 |
2009-08-03 00:00:00 | admin | set | messages: + msg2184 |
2009-08-03 00:00:00 | admin | set | status: open -> review |
2009-04-06 00:00:00 | admin | create |