pool append move and copy
This commit is contained in:
@@ -71,6 +71,7 @@ void Log(LogLevel lvl, std::format_string<Args...> fmt, Args&&... args) {
|
||||
}
|
||||
template <typename T>
|
||||
std::string TypeName() {
|
||||
#ifdef __RTTI
|
||||
#if defined(__GNUG__) && !defined(_MSC_VER)
|
||||
int res = 0;
|
||||
std::unique_ptr<char, void (*)(void*)> up{
|
||||
@@ -79,6 +80,9 @@ std::string TypeName() {
|
||||
#else
|
||||
return typeid(T).name(); // no demangler available :/
|
||||
#endif
|
||||
#else
|
||||
return "";
|
||||
#endif
|
||||
}
|
||||
} // namespace PD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user