Commit 010f3f6b authored by neverlord's avatar neverlord

serialization improvements

parent 123e61f7
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
#define TO_UNIFORM_NAME_HPP #define TO_UNIFORM_NAME_HPP
#include <string> #include <string>
#include <typeinfo>
namespace cppa { namespace detail { namespace cppa { namespace detail {
std::string to_uniform_name(const std::string& demangled_name); std::string to_uniform_name(const std::string& demangled_name);
std::string to_uniform_name(const std::type_info& tinfo);
} } // namespace cppa::detail } } // namespace cppa::detail
......
...@@ -211,4 +211,10 @@ std::string to_uniform_name(const std::string& dname) ...@@ -211,4 +211,10 @@ std::string to_uniform_name(const std::string& dname)
return r; return r;
} }
std::string to_uniform_name(const std::type_info& tinfo)
{
return to_uniform_name(demangle(tinfo.name()));
}
} } // namespace cppa::detail } } // namespace cppa::detail
This diff is collapsed.
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