123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- #ifndef BOOST_SERIALIZATION_SERIALIZATION_HPP
- #define BOOST_SERIALIZATION_SERIALIZATION_HPP
- #if defined(_MSC_VER)
- # pragma once
- #endif
- #if defined(_MSC_VER)
- # pragma warning (disable : 4675)
- #endif
- #include <boost/config.hpp>
- #include <boost/serialization/strong_typedef.hpp>
- #include <boost/serialization/access.hpp>
- namespace boost {
- namespace serialization {
- BOOST_STRONG_TYPEDEF(unsigned int, version_type)
- template<class Archive, class T>
- inline void serialize(
- Archive & ar, T & t, const unsigned int file_version
- ){
- access::serialize(ar, t, static_cast<unsigned int>(file_version));
- }
- template<class Archive, class T>
- inline void save_construct_data(
- Archive & /*ar*/,
- const T * /*t*/,
- const unsigned int /*file_version */
- ){
-
-
- }
- template<class Archive, class T>
- inline void load_construct_data(
- Archive & /*ar*/,
- T * t,
- const unsigned int /*file_version*/
- ){
-
-
-
- access::construct(t);
- }
- template<class Archive, class T>
- inline void serialize_adl(
- Archive & ar,
- T & t,
- const unsigned int file_version
- ){
-
-
-
-
-
-
-
-
- const version_type v(file_version);
- serialize(ar, t, v);
- }
- template<class Archive, class T>
- inline void save_construct_data_adl(
- Archive & ar,
- const T * t,
- const unsigned int file_version
- ){
-
- const version_type v(file_version);
- save_construct_data(ar, t, v);
- }
- template<class Archive, class T>
- inline void load_construct_data_adl(
- Archive & ar,
- T * t,
- const unsigned int file_version
- ){
-
- const version_type v(file_version);
- load_construct_data(ar, t, v);
- }
- }
- }
- #endif
|