Last active
September 23, 2015 16:09
-
-
Save studiofuga/6a215e3af8d98fe7ec1e to your computer and use it in GitHub Desktop.
C++ class demangling (g++ ABI)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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