[PATCH] rvalue reference implementation for C++0x

Gabriel Dos Reis gdr@cs.tamu.edu
Sun Mar 11 11:59:00 GMT 2007


"Doug Gregor" <doug.gregor@gmail.com> writes:

| > I think it is better to create a new type in the C++ front-end
| 
| I'd recommend against this. Lvalue references and rvalue references in
| C++0x are identical in nearly every aspect, except that they behave
| differently for template argument deduction and have slightly
| different overloading behavior. 

That sounds to me as if it is best represented as a distinct type node.
Distinct notions should get distinct type nodes; each time the C++
front end violates that principle, it came back biting fiercely in
terms of complexity and bugs.

-- Gaby



More information about the Gcc-patches mailing list