23#include <boost/algorithm/string/erase.hpp>
33namespace triqs::utility {
39 char *demangled = abi::__cxa_demangle(name,
nullptr,
nullptr, &status);
41 std::string res(demangled);
42 boost::erase_all(res,
", boost::tuples::null_type");
43 boost::erase_all(res,
", -1");
44 boost::erase_all(res,
", void");
Compiler / platform glue and the dcomplex alias (must be included before any Boost header).
std::string demangle(const char *name)
Demangle a mangled C++ symbol name to a human-readable string.
std::string get_name(std::type_info const &info)
Demangle the name corresponding to an std::type_info.
Helper functions built around std::type_info.