Finished archives; remove pod.h
This commit is contained in:
parent
2bf5b46460
commit
558e710e17
14 changed files with 72 additions and 48 deletions
|
@ -1,17 +0,0 @@
|
|||
#include "boost/serialization/split_member.hpp"
|
||||
|
||||
#define SERIALIZE_AS_POD \
|
||||
private: \
|
||||
friend class boost::serialization::access; \
|
||||
template <typename Archive> \
|
||||
void save(Archive& ar, const unsigned int file_version) const { \
|
||||
ar.save_binary(this, sizeof(*this)); \
|
||||
} \
|
||||
template <typename Archive> \
|
||||
void load(Archive& ar, const unsigned int file_version) { \
|
||||
ar.load_binary(this, sizeof(*this)); \
|
||||
} \
|
||||
template <class Archive> \
|
||||
void serialize(Archive& ar, const unsigned int file_version) { \
|
||||
boost::serialization::split_member(ar, *this, file_version); \
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue