repr 0.1
Reconstructable string representations and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
rtti.h
Go to the documentation of this file.
#pragma once
#include <string>
#include <typeinfo>
#include <librepr/feature.h>
#include "demangle.h"
namespace librepr::
#if USING(REPR_RTTI)
#endif
rtti {
template <typename T>
std::string get_name_raw() {
#if USING(LIBREPR_PLATFORM_WINDOWS)
auto name = typeid(T).name();
#else
return librepr::demangle(typeid(T).name());
#endif
}
} // namespace librepr::rtti