
16 Apr
2004
16 Apr
'04
1:11 p.m.
"Andrea Torsello" <torsello@dsi.unive.it> writes:
const rvalues get treated like non-const rvalues. I never noticed it because I never return const temporaries, but the same happens on gcc 3.3.1.
That's actually OK. The compiler is allowed to "copy" a const rvalue into a non-const rvalue, and then elide the copy. So in general there's nothing to prevent you from moving from a const rvalue. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com