Change example to use buffers as arithmetic is not needed.

This commit is contained in:
Beman
2014-12-09 07:13:55 -05:00
parent 4b6019c82e
commit 7b86b251d7

View File

@@ -16,7 +16,7 @@
#include <iostream> #include <iostream>
#include <cstdio> #include <cstdio>
#include <boost/endian/arithmetic.hpp> #include <boost/endian/buffers.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>
using namespace boost::endian; using namespace boost::endian;
@@ -30,10 +30,10 @@ namespace
struct header struct header
{ {
big_int32_t file_code; big_int32_buf_t file_code;
big_int32_t file_length; big_int32_buf_t file_length;
little_int32_t version; little_int32_buf_t version;
little_int32_t shape_type; little_int32_buf_t shape_type;
}; };
const char* filename = "test.dat"; const char* filename = "test.dat";