This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]