Skip to content

Instantly share code, notes, and snippets.

@studiofuga
Last active September 23, 2015 16:09
Show Gist options
  • Save studiofuga/6a215e3af8d98fe7ec1e to your computer and use it in GitHub Desktop.
Save studiofuga/6a215e3af8d98fe7ec1e to your computer and use it in GitHub Desktop.
C++ class demangling (g++ ABI)
#include <cxxabi.h>
int main()
{
MyClass *m = new SomeClass();
char *demangled = abi::__cxa_demangle(typeid(*m).name(), 0, 0, 0);
std::cout << demangled << std::endl;
free(demangled);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment