diff --git a/include/fc/reflect/typename.hpp b/include/fc/reflect/typename.hpp index 5777f34..c5bba19 100644 --- a/include/fc/reflect/typename.hpp +++ b/include/fc/reflect/typename.hpp @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -86,10 +87,19 @@ namespace fc { return n.c_str(); } }; + template struct get_typename< fc::smart_ref > + { + static const char* name() + { + return (std::string("fc::smart_ref<") + get_typename::name() + std::string(">")).c_str(); + } + }; struct signed_int; struct unsigned_int; + struct variant_object; template<> struct get_typename { static const char* name() { return "signed_int"; } }; template<> struct get_typename { static const char* name() { return "unsigned_int"; } }; + template<> struct get_typename { static const char* name() { return "fc::variant_object"; } }; }