Update typename.hpp

This commit is contained in:
cwyyprog 2017-11-14 17:11:24 +08:00 committed by GitHub
parent cb627980a5
commit d157c2c756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"; } };