Created on 2010-02-01.00:00:00 last changed 173 months ago
Rationale (August, 2010):
The current specification is as intended.
Historically, based on C's treatment, cv-qualification of non-class rvalues has been ignored in C++. With the advent of rvalue references, it's not quite as clear that this is desirable. For example, some implementations are reported to print const rvalue for the following program:
const int bar() { return 5; } void pass_int(int&& i) { printf("rvalue\n"); } void pass_int(const int&& i) { printf("const rvalue\n"); } int main() { pass_int(bar()); }
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-08-23 00:00:00 | admin | set | messages: + msg2940 |
2010-08-23 00:00:00 | admin | set | status: open -> nad |
2010-02-01 00:00:00 | admin | create |