On 2010-11-27, 16:37:07 -0800, James Dennett <[email protected]> wrote: > 4.6 appears to be right -- you cannot bind an X&& to a const X (which > is good, as otherwise you could change the const X).
Should this one emit the same error then? 4.6 compiles it.
typedef int X;
X test() {
X const& a={};
return std::move(a);
}
Thanks
