forked from boostorg/endian
Revert the default (*_t) types to unaligned, and used *_at to identify the aligned types. See mini-review thread for rationale.
This commit is contained in:
@@ -27,10 +27,10 @@ namespace
|
||||
|
||||
struct header
|
||||
{
|
||||
big_int32_buf_t file_code;
|
||||
big_int32_buf_t file_length;
|
||||
little_int32_buf_t version;
|
||||
little_int32_buf_t shape_type;
|
||||
big_int32_buf_at file_code;
|
||||
big_int32_buf_at file_length;
|
||||
little_int32_buf_at version;
|
||||
little_int32_buf_at shape_type;
|
||||
};
|
||||
|
||||
const char* filename = "test.dat";
|
||||
|
||||
Reference in New Issue
Block a user