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

Fix template specialization issue #164

Merged
merged 1 commit into from
Aug 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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