Fix binary I/O for unsigned integral types (such as std::size_t).

This commit is contained in:
Laurent Rineau 2010-06-24 13:27:24 +00:00
parent 1e12152c5f
commit 3b5f97ee04
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,8 @@
#ifndef CGAL_IO_TAGS_H
#define CGAL_IO_TAGS_H
#include <cstddef>
namespace CGAL {
struct io_Read_write{};
@ -43,6 +45,13 @@ template<> struct Io_traits<int> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<long> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<long long> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<unsigned char>{ typedef io_Read_write Io_tag; };
template<> struct Io_traits<unsigned short> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<unsigned int> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<unsigned long> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<unsigned long long> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<float> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<double> { typedef io_Read_write Io_tag; };
template<> struct Io_traits<long double> { typedef io_Read_write Io_tag; };