[cxx-abi-dev] Use of "sr" mangling code

Dennis Handly dhandly at cup.hp.com
Tue Oct 15 06:45:20 UTC 2002


>  template <typename T> void g (S<&T::operator- >) {}
>The key question is whether "operator+" should be treated as unary or
>binary.                      ^^^^^^^^^

I assume you meant operator-?

  template <typename T> void g(S<&T::operator->) {}
  template void g<A>(S<&A::operator-);

Did you mean a space between "-" & ">" in the first and to add a space ">"
in the second.

>G++ doesn't get a vote in this question since it crashed on this test
>case.
CodeSourcery, LLC               http://www.codesourcery.com

HP gives an error on explicit instantiation and crashes on implicit.



More information about the cxx-abi-dev mailing list