2019-08-06 16:59:31 +02:00
|
|
|
#include "boost/archive/binary_iarchive.hpp"
|
|
|
|
#include "boost/archive/binary_oarchive.hpp"
|
2019-12-23 00:37:17 +01:00
|
|
|
#include "boost/serialization/export.hpp"
|
2019-08-06 16:59:31 +02:00
|
|
|
|
2019-08-07 18:08:52 +02:00
|
|
|
using iarchive = boost::archive::binary_iarchive;
|
|
|
|
using oarchive = boost::archive::binary_oarchive;
|
|
|
|
|
|
|
|
#define SERIALIZE_IMPL(A) template void A::serialize<iarchive>( \
|
2019-12-27 19:52:33 +01:00
|
|
|
iarchive & ar, \
|
|
|
|
const unsigned int file_version \
|
|
|
|
); \
|
|
|
|
template void A::serialize<oarchive>( \
|
|
|
|
oarchive & ar, \
|
|
|
|
const unsigned int file_version \
|
2019-08-06 16:59:31 +02:00
|
|
|
);
|
2019-08-11 16:19:45 +02:00
|
|
|
|
|
|
|
#define SERIALIZE_EXPORT_IMPL(A) \
|
|
|
|
BOOST_SERIALIZATION_REGISTER_ARCHIVE(iarchive) \
|
|
|
|
BOOST_SERIALIZATION_REGISTER_ARCHIVE(oarchive) \
|
|
|
|
BOOST_CLASS_EXPORT_IMPLEMENT(A)
|