1 --- Collage-1.7.0/co/dataIStreamArchive.ipp.orig 2020-08-01 08:04:33.045186314 +0200
2 +++ Collage-1.7.0/co/dataIStreamArchive.ipp 2020-08-01 08:42:36.396149673 +0200
5 #include "dataIStream.h"
6 #include "dataStreamArchiveException.h"
7 +#include <boost/endian/conversion.hpp>
12 typename boost::enable_if<boost::is_integral<T> >::type
13 DataIStreamArchive::load(T& t)
15 -#if BOOST_VERSION < 104800
16 - namespace bs = boost::detail;
18 - namespace bs = boost::spirit::detail;
21 // get the number of bytes in the stream
22 if (signed char size = _loadSignedChar())
26 // load the value from little endian - is is then converted
27 // to the target type T and fits it because size <= sizeof(T)
28 - t = bs::load_little_endian<T, sizeof(T)>(&temp);
29 + t = boost::endian::endian_load<T, sizeof(T), boost::endian::order::little>(reinterpret_cast<const unsigned char*>(&temp));
33 --- Collage-1.7.0/co/dataOStreamArchive.h.orig 2020-08-01 08:04:33.045186314 +0200
34 +++ Collage-1.7.0/co/dataOStreamArchive.h 2020-08-01 09:13:51.802656391 +0200
36 #include <boost/serialization/item_version_type.hpp>
39 -#include <boost/spirit/home/support/detail/endian.hpp>
40 +#include <boost/endian/conversion.hpp>
41 #include <boost/math/special_functions/fpclassify.hpp>
43 #include <boost/type_traits/is_floating_point.hpp>
44 --- Collage-1.7.0/co/dataOStreamArchive.ipp.orig 2020-08-01 08:04:33.045186314 +0200
45 +++ Collage-1.7.0/co/dataOStreamArchive.ipp 2020-08-01 09:13:54.569308070 +0200
47 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
52 void DataOStreamArchive::save_array(const boost::serialization::array_wrapper<T>& a,
55 typename boost::enable_if<boost::is_integral<T> >::type
56 DataOStreamArchive::save(const T& t)
58 -#if BOOST_VERSION < 104800
59 - namespace bs = boost::detail;
61 - namespace bs = boost::spirit::detail;
68 // we choose to use little endian because this way we just
69 // save the first size bytes to the stream and skip the rest
70 - bs::store_little_endian<T, sizeof(T)>(&temp, t);
71 + boost::endian::endian_store<T, sizeof(T), boost::endian::order::little>(reinterpret_cast<unsigned char*>(&temp), t);
72 save_binary(&temp, size);