summaryrefslogtreecommitdiff
path: root/libs/endian/example/third_party_format.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/endian/example/third_party_format.hpp')
-rw-r--r--libs/endian/example/third_party_format.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/endian/example/third_party_format.hpp b/libs/endian/example/third_party_format.hpp
new file mode 100644
index 000000000..d6472837d
--- /dev/null
+++ b/libs/endian/example/third_party_format.hpp
@@ -0,0 +1,19 @@
+// endian/example/third_party_format.hpp
+
+// Copyright Beman Dawes 2014
+
+// Distributed under the Boost Software License, Version 1.0.
+// See http://www.boost.org/LICENSE_1_0.txt
+
+#include <cstdint>
+
+namespace third_party
+{
+ struct record
+ {
+ uint32_t id; // big endian
+ int32_t balance; // big endian
+
+ // ... data members whose endianness is not a concern
+ };
+}