DarkflameServer/dCommon/Type.h
2021-12-05 18:54:36 +01:00

13 lines
186 B
C++

#pragma once
#include <string>
#include <typeinfo>
std::string demangle(const char* name);
template <class T>
std::string type(const T& t) {
return demangle(typeid(t).name());
}