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