The return of name
is implementation defined : an implementation is not even required to return different strings for different types.
What you get from g++ is a decorated name, that you can “demangle” using the c++filt
command or __cxa_demangle
.
More Related Contents:
- Why does flowing off the end of a non-void function without returning a value not produce a compiler error?
- Undefined reference to vtable
- What is the difference between g++ and gcc?
- How does #include work in C++? [duplicate]
- Compiling a C++ program with GCC
- Undefined Symbol ___gxx_personality_v0 on link
- Compiling multithread code with g++
- How to create a static library with g++?
- How to force gcc to link an unused static library
- What is the purpose of using -pedantic in the GCC/G++ compiler?
- gcc/g++: “No such file or directory”
- 😃 (and other Unicode characters) in identifiers not allowed by g++
- constexpr initializing static member using static function
- How to tell where a header file is included from?
- Linking g++ 4.8 to libstdc++
- Update GCC on OSX
- error: use of deleted function
- Linking to MSVC DLL from MinGW
- GNU C++ how to check when -std=c++0x is in effect?
- g++ How to get warning on ignoring function return value
- SetJmp/LongJmp: Why is this throwing a segfault?
- request for member `…’ is ambiguous in g++
- GCC: Difference between -O3 and -Os
- Does the restrict keyword provide significant benefits in gcc/g++?
- Difference between regex_match and regex_search?
- Why does sqrt() work fine on an int variable if it is not defined for an int?
- Undocumented GCC Extension: VLA in struct
- How should I use g++’s -finput-charset compiler option correctly in order to compile a non-UTF-8 source file?
- Can I make GCC warn on passing too-wide types to functions?
- List of common C++ Optimization Techniques [closed]