21 #ifndef LUNCHBOX_SERIALIZABLE_H
22 #define LUNCHBOX_SERIALIZABLE_H
24 #include <lunchbox/defines.h>
26 #include <boost/serialization/access.hpp>
27 #include <boost/serialization/split_member.hpp>
30 #define LB_SERIALIZABLE \
31 friend class boost::serialization::access; \
32 template< class Archive > \
33 void save( Archive& ar, const unsigned int version ) const; \
34 template< class Archive > \
35 void load( Archive& ar, const unsigned int version ); \
36 BOOST_SERIALIZATION_SPLIT_MEMBER()
38 #endif // LUNCHBOX_SERIALIZABLE_H