123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef BOOST_SERIALIZATION_WRAPPER_HPP
- #define BOOST_SERIALIZATION_WRAPPER_HPP
- #include <boost/serialization/traits.hpp>
- #include <boost/type_traits/is_base_and_derived.hpp>
- #include <boost/mpl/eval_if.hpp>
- namespace boost { namespace serialization {
- template<
- class T,
- int Level = object_serializable,
- int Tracking = track_never,
- unsigned int Version = 0,
- class ETII = extended_type_info_impl< T >
- >
- struct wrapper_traits : public traits<T,Level,Tracking,Version,ETII,mpl::true_>
- {};
- namespace detail {
- template <class T>
- struct is_wrapper_member
- {
- typedef BOOST_DEDUCED_TYPENAME T::is_wrapper type;
- };
- }
- template<class T>
- struct is_wrapper
- : mpl::eval_if<
- is_base_and_derived<basic_traits,T>,
- detail::is_wrapper_member<T>,
- mpl::false_
- >::type
- {};
-
- } }
- #define BOOST_CLASS_IS_WRAPPER(T) \
- namespace boost { \
- namespace serialization { \
- template<> \
- struct is_wrapper< T > : mpl::true_ {}; \
- }}
- #endif
|