forked from boostorg/endian
Change example to use buffers as arithmetic is not needed.
This commit is contained in:
@@ -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";
|
||||||
|
Reference in New Issue
Block a user