Add type_to_string for more cstdint types

This commit is contained in:
Danny Robson 2011-06-21 23:37:30 +10:00
parent c8804cbe8e
commit 4234171e92

View File

@ -12,6 +12,16 @@ template <> std::string type_to_string <const T> (void) { return "const " #T; }
do_type_to_string (float)
do_type_to_string (double)
do_type_to_string ( int8_t)
do_type_to_string ( int16_t)
do_type_to_string ( int32_t)
do_type_to_string ( int64_t)
do_type_to_string ( uint8_t)
do_type_to_string (uint16_t)
do_type_to_string (uint32_t)
do_type_to_string (uint64_t)
#ifdef WORDS_BIGENDIAN
/* Big endian doesn't need swapping */
template <typename T>