Return type in demangled member function name
问题 What is the reason for the g++ abi::__cxa_demangle function to not return the return value for member functions? Here's a working example of this behavior #include <execinfo.h> #include <cxxabi.h> #include <iostream> struct Foo { void operator()() const { constexpr int buf_size = 100; static void *buffer[buf_size]; int nptrs = backtrace(buffer, buf_size); char **strings = backtrace_symbols(buffer, nptrs); for(int i = 0; i < nptrs; ++i) { auto str = std::string(strings[i]); auto first = str