mirror of https://github.com/CGAL/cgal
Fix binary I/O for unsigned integral types (such as std::size_t).
This commit is contained in:
parent
1e12152c5f
commit
3b5f97ee04
|
|
@ -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; };
|
||||
|
|
|
|||
Loading…
Reference in New Issue