--- Collage-1.7.0/co/dataIStreamArchive.ipp.orig 2020-08-01 08:04:33.045186314 +0200 +++ Collage-1.7.0/co/dataIStreamArchive.ipp 2020-08-01 08:42:36.396149673 +0200 @@ -17,6 +17,7 @@ #include "dataIStream.h" #include "dataStreamArchiveException.h" +#include namespace co { @@ -39,12 +40,6 @@ typename boost::enable_if >::type DataIStreamArchive::load(T& t) { -#if BOOST_VERSION < 104800 - namespace bs = boost::detail; -#else - namespace bs = boost::spirit::detail; -#endif - // get the number of bytes in the stream if (signed char size = _loadSignedChar()) { @@ -62,7 +57,7 @@ // load the value from little endian - is is then converted // to the target type T and fits it because size <= sizeof(T) - t = bs::load_little_endian(&temp); + t = boost::endian::endian_load(reinterpret_cast(&temp)); } else // zero optimization --- Collage-1.7.0/co/dataOStreamArchive.h.orig 2020-08-01 08:04:33.045186314 +0200 +++ Collage-1.7.0/co/dataOStreamArchive.h 2020-08-01 09:13:51.802656391 +0200 @@ -43,7 +43,7 @@ #include #endif -#include +#include #include #include --- Collage-1.7.0/co/dataOStreamArchive.ipp.orig 2020-08-01 08:04:33.045186314 +0200 +++ Collage-1.7.0/co/dataOStreamArchive.ipp 2020-08-01 09:13:54.569308070 +0200 @@ -15,6 +15,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + template void DataOStreamArchive::save_array(const boost::serialization::array_wrapper& a, unsigned int) @@ -34,11 +35,6 @@ typename boost::enable_if >::type DataOStreamArchive::save(const T& t) { -#if BOOST_VERSION < 104800 - namespace bs = boost::detail; -#else - namespace bs = boost::spirit::detail; -#endif if (T temp = t) { @@ -60,7 +56,7 @@ // we choose to use little endian because this way we just // save the first size bytes to the stream and skip the rest - bs::store_little_endian(&temp, t); + boost::endian::endian_store(reinterpret_cast(&temp), t); save_binary(&temp, size); } else