Commit ea2eafef authored by Dominik Charousset's avatar Dominik Charousset

provide detail::demangle overload for std::type_info

parent 3c3f6b78
...@@ -32,10 +32,12 @@ ...@@ -32,10 +32,12 @@
#define CPPA_DEMANGLE_HPP #define CPPA_DEMANGLE_HPP
#include <string> #include <string>
#include <typeinfo>
namespace cppa { namespace detail { namespace cppa { namespace detail {
std::string demangle(const char* typeid_name); std::string demangle(const char* typeid_name);
std::string demangle(const std::type_info& tinf);
} } // namespace cppa::detail } } // namespace cppa::detail
......
...@@ -90,4 +90,8 @@ std::string demangle(const char* decorated) { ...@@ -90,4 +90,8 @@ std::string demangle(const char* decorated) {
return result; return result;
} }
std::string demangle(const std::type_info& tinf) {
return demangle(tinf.name());
}
} } // namespace cppa::detail } } // namespace cppa::detail
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment