From e8961888752c7203d67cd64c7a712b30e35dd21b Mon Sep 17 00:00:00 2001 From: John Jones Date: Fri, 10 Aug 2018 20:40:21 -0500 Subject: [PATCH] additional templates for get_typename --- include/fc/reflect/typename.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"; } }; }