Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #164 from sim31/fix-specialization
Browse files Browse the repository at this point in the history
Fix template specialization issue
  • Loading branch information
nathanielhourt authored Aug 15, 2017
2 parents 27281ca + d0098e8 commit 5819d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/fc/include/fc/reflect/typename.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace fc {
class exception;
namespace ip { class address; }

template<typename T> class get_typename{};
template<typename... T> struct get_typename;
template<> struct get_typename<int32_t> { static const char* name() { return "int32_t"; } };
template<> struct get_typename<int64_t> { static const char* name() { return "int64_t"; } };
template<> struct get_typename<int16_t> { static const char* name() { return "int16_t"; } };
Expand Down
2 changes: 1 addition & 1 deletion libraries/fc/include/fc/static_variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,5 +385,5 @@ struct visitor {
s.visit( to_static_variant(ar[1]) );
}

template<typename... T> struct get_typename<T...> { static const char* name() { return typeid(static_variant<T...>).name(); } };
template<typename... T> struct get_typename { static const char* name() { return typeid(static_variant<T...>).name(); } };
} // namespace fc

0 comments on commit 5819d26

Please sign in to comment.