clang-format fixes

This commit is contained in:
Hamish Milne
2019-12-27 21:07:29 +00:00
committed by zhupengfei
parent d482fb359c
commit 7b846ffa98
117 changed files with 797 additions and 925 deletions

View File

@@ -1,20 +1,17 @@
#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); \
#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); \
}