Commit 48b09d1
committed
binary_writer.cpp: fix compatibility with boost-1.71.0
With newer boost 1.71.0 with:
boostorg/endian@6b57926#diff-5a08a00b5b1ec741b8b13cf3c1396874
boost/endian/conversion.hpp isn't included by
boost/endian/buffers.hpp and the build fails with:
src/anbox/common/binary_writer.cpp: In member function 'void anbox::common::BinaryWriter::write_uint16(uint16_t)':
src/anbox/common/binary_writer.cpp:52:24: error: 'native_to_big' is not a member of 'boost::endian'
52 | v = boost::endian::native_to_big(value);
| ^~~~~~~~~~~~~
src/anbox/common/binary_writer.cpp:55:24: error: 'native_to_little' is not a member of 'boost::endian'
55 | v = boost::endian::native_to_little(value);
| ^~~~~~~~~~~~~~~~
src/anbox/common/binary_writer.cpp: In member function 'void anbox::common::BinaryWriter::write_uint32(uint32_t)':
src/anbox/common/binary_writer.cpp:72:24: error: 'native_to_big' is not a member of 'boost::endian'
72 | v = boost::endian::native_to_big(value);
| ^~~~~~~~~~~~~
src/anbox/common/binary_writer.cpp:75:24: error: 'native_to_little' is not a member of 'boost::endian'
75 | v = boost::endian::native_to_little(value);
| ^~~~~~~~~~~~~~~~
Signed-off-by: Martin Jansa <[email protected]>1 parent bdfda8c commit 48b09d1
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments