From e754b4940e2142553029c693dc62318139a3824a Mon Sep 17 00:00:00 2001 From: cwyyprog Date: Tue, 14 Nov 2017 17:09:08 +0800 Subject: [PATCH 1/2] Update static_variant.hpp --- include/fc/static_variant.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fc/static_variant.hpp b/include/fc/static_variant.hpp index 9aab790..d6206c2 100644 --- a/include/fc/static_variant.hpp +++ b/include/fc/static_variant.hpp @@ -382,5 +382,5 @@ struct visitor { s.visit( to_static_variant(ar[1]) ); } - template struct get_typename { static const char* name() { return typeid(static_variant).name(); } }; + template struct get_typename { static const char* name() { return typeid(static_variant).name(); } }; } // namespace fc From d157c2c756f1b65f7bb12af789c3ca1f9dcc647d Mon Sep 17 00:00:00 2001 From: cwyyprog Date: Tue, 14 Nov 2017 17:11:24 +0800 Subject: [PATCH 2/2] Update typename.hpp --- include/fc/reflect/typename.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fc/reflect/typename.hpp b/include/fc/reflect/typename.hpp index 312c927..5cd55c9 100644 --- a/include/fc/reflect/typename.hpp +++ b/include/fc/reflect/typename.hpp @@ -15,7 +15,7 @@ namespace fc { class exception; namespace ip { class address; } - template class get_typename{}; + template struct get_typename; template<> struct get_typename { static const char* name() { return "int32_t"; } }; template<> struct get_typename { static const char* name() { return "int64_t"; } }; template<> struct get_typename { static const char* name() { return "int16_t"; } };