[patch][libstdc++ patch][c++ patch] Update mangling and demangling for rvalue references
Doug Gregor
doug.gregor@gmail.com
Sat Jun 30 04:20:00 GMT 2007
On 29 Jun 2007 17:16:38 -0700, Ian Lance Taylor <iant@google.com> wrote:
> "Doug Gregor" <doug.gregor@gmail.com> writes:
>
> > Index: include/demangle.h
> > ===================================================================
> > --- include/demangle.h (revision 126081)
> > +++ include/demangle.h (working copy)
> > @@ -359,7 +359,10 @@ enum demangle_component_type
> > using 'n' instead of '-', we want a way to indicate a negative
> > number which involves neither modifying the mangled string nor
> > allocating a new copy of the literal in memory. */
> > - DEMANGLE_COMPONENT_LITERAL_NEG
> > + DEMANGLE_COMPONENT_LITERAL_NEG,
> > + /* C++0x: An rvalue reference. The one subtree is the type which is
> > + being referenced. */
> > + DEMANGLE_COMPONENT_RVALUE_REFERENCE
> > };
>
> Please put this up just after DEMANGLE_COMPONENT_REFERENCE.
I can do that. My understanding was that include/demangle.h was a
public interface, so I planned to put the new enumerator values at the
bottom to keep the existing values the same.
If that doesn't mater, it's cleaner to put it under
DEMANGLE_COMPONENT_REFERENCE, of course.
- Doug
More information about the Libstdc++
mailing list