30#ifndef CEREAL_DETAILS_UTIL_HPP_
31#define CEREAL_DETAILS_UTIL_HPP_
43 inline std::string
demangle( std::string
const & name )
48 template <
class T>
inline
50 {
return typeid( T ).name(); }
62 inline std::string
demangle(std::string mangledName)
68 demangledName = abi::__cxa_demangle(mangledName.c_str(), 0, &len, &status);
78 template<
class T>
inline
80 {
return demangle(
typeid(T).name()); }
std::string demangle(std::string mangledName)
Demangles the type encoded in a string.
Definition: util.hpp:62
std::string demangledName()
Gets the demangled name of a type.
Definition: util.hpp:79