Is intptr_t a signed counterpart of uintptr_t (and vice versa)?
问题 I'm developing some tests for the add_signed MPL class that converts the type to its signed counterpart. It is defined as follows: template<class T> struct add_signed { typedef T type; }; template<> struct add_signed<std::uint8_t> { typedef std::int8_t type; }; template<> struct add_signed<std::uint16_t> { typedef std::int16_t type; }; template<> struct add_signed<std::uint32_t> { typedef std::int32_t type; }; template<> struct add_signed<std::uint64_t> { typedef std::int64_t type; }; While