[cxx-abi-dev] RE: [cxx-abi] [cxx-abi-dev] Mangling unary plus

Dennis Handly dhandly at cup.hp.com
Thu Oct 10 22:32:04 UTC 2002


>This is going to end up encoded as (if my brain is mangling corrctly today):
>  AIXplplLi3ELi4EEE
>if "pl" is used for both operators.
>Nobody's demangler is going to get that right; you now need to be
>writing scan-ahead code in your demangler to see how many arguments
>there are.

That's not a problem for aC++'s.

>So, I do not think we have a choice; I think we need to specify "ps"
>for unary plus.
Mark Mitchell

Use "ps" for template function expression and "pl" for overloaded unary
operator+.



More information about the cxx-abi-dev mailing list