Remove now unnecessary sign_type template helper

This commit is contained in:
Danny Robson 2011-07-05 23:06:41 +10:00
parent 6910ef10b9
commit be643f96d7

View File

@ -56,58 +56,6 @@ template <typename T>
std::string type_to_string (void); std::string type_to_string (void);
template <typename T>
struct sign_types;
template <> struct sign_types <int8_t> {
typedef int8_t with_sign;
typedef uint8_t without_sign;
};
template <> struct sign_types <uint8_t> {
typedef int8_t with_sign;
typedef uint8_t without_sign;
};
template <> struct sign_types <int16_t> {
typedef int16_t with_sign;
typedef uint16_t without_sign;
};
template <> struct sign_types <uint16_t> {
typedef int16_t with_sign;
typedef uint16_t without_sign;
};
template <> struct sign_types <int32_t> {
typedef int32_t with_sign;
typedef uint32_t without_sign;
};
template <> struct sign_types <uint32_t> {
typedef int32_t with_sign;
typedef uint32_t without_sign;
};
template <> struct sign_types <int64_t> {
typedef signed long with_sign;
typedef unsigned long without_sign;
};
template <> struct sign_types <uint64_t> {
typedef signed long with_sign;
typedef unsigned long without_sign;
};
namespace detail { namespace detail {
template <typename T, typename V> template <typename T, typename V>
T T