22#include <boost/serialization/split_free.hpp>
28template <
class Archive,
class T>
29void save(Archive &ar, std::optional<T>
const &opt,
unsigned int const) {
30 bool has_value = opt.has_value();
37template <
class Archive,
class T>
38void load(Archive &ar, std::optional<T> &opt,
unsigned int const) {
42 if (not opt.has_value()) {
51template <
class Archive,
class T>
52void serialize(Archive &ar, std::optional<T> &opt,
unsigned int const version) {
53 split_free(ar, opt, version);
void serialize(Archive &ar, std::tuple< T... > &pack, unsigned int const)
Serialize std::tuple.
void load(Archive &ar, GpuParticleData::GpuParticle &p, unsigned const)
void save(Archive &ar, GpuParticleData::GpuParticle const &p, unsigned const)