From da33edc384db1da6c31ff1c28c04c1aca442278d Mon Sep 17 00:00:00 2001 From: John Jones Date: Fri, 10 Aug 2018 15:33:25 -0500 Subject: [PATCH] additional typenames --- include/fc/reflect/typename.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/fc/reflect/typename.hpp b/include/fc/reflect/typename.hpp index 5cd55c9..5777f34 100644 --- a/include/fc/reflect/typename.hpp +++ b/include/fc/reflect/typename.hpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -69,6 +70,22 @@ namespace fc { return n.c_str(); } }; + template struct get_typename< std::set > + { + static const char* name() + { + static std::string n = std::string("std::set<") + std::string(get_typename::name()) + std::string(">"); + return n.c_str(); + } + }; + template struct get_typename< std::pair > + { + static const char* name() + { + static std::string n = std::string("std::pair<") + get_typename::name() + "," + get_typename::name() + ">"; + return n.c_str(); + } + }; struct signed_int; struct unsigned_int;