diff --git a/include/ircd/mods.h b/include/ircd/mods.h index a2017a9f4..203e45605 100644 --- a/include/ircd/mods.h +++ b/include/ircd/mods.h @@ -38,6 +38,8 @@ namespace ircd::mods struct paths extern paths; std::string demangle(const std::string &symbol); + template std::string demangle(); + std::string postfixed(const std::string &name); std::string unpostfixed(const std::string &name); @@ -269,3 +271,10 @@ const { return reinterpret_cast(ptr(name)); } + +template +std::string +ircd::mods::demangle() +{ + return demangle(typeid(T).name()); +}