We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3dd749 commit e9d852dCopy full SHA for e9d852d
src/sample.h
@@ -12,15 +12,8 @@
12
#include <string>
13
#include <type_traits>
14
15
-#ifndef BOOST_BYTE_ORDER
16
-#if BOOST_ENDIAN_BIG_BYTE
17
-const int BOOST_BYTE_ORDER = 4321;
18
-#elif BOOST_ENDIAN_LITTLE_BYTE
19
-const int BOOST_BYTE_ORDER = 1234;
20
-#elif BOOST_ENDIAN_LITTLE_WORD
21
-const int BOOST_BYTE_ORDER = 2134;
22
-#endif
23
+const int BOOST_BYTE_ORDER =
+ lslboost::endian::order::native == lslboost::endian::order::little ? 4321 : 1234;
24
25
// Boost.Endian has no functions to reverse floats, so we pretend they're ints of the same size.
26
template <typename T> inline void endian_reverse_inplace(T &t) {
0 commit comments