24 #include <boost/core/demangle.hpp>
32 const std::string demangled = boost::core::demangle(mangled.c_str());
33 static const auto removeNamespaceSpecifier = [](
const std::string & demangled)
35 std::size_t substrStart = 0;
36 std::size_t level = 0;
37 if (!demangled.empty())
38 for (
int i =
static_cast<int>(demangled.size() - 1); i >= 0; --i)
40 if (!level && demangled.at(i) ==
':')
45 level += (demangled.at(i) ==
'>') - (demangled.at(i) ==
'<');
47 return demangled.substr(substrStart);
52 removeNamespaceSpecifier(demangled)