123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #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>
- #include <boost/mpl/bool_fwd.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_>
- {};
- template<class T>
- struct is_wrapper_impl :
- boost::mpl::eval_if<
- boost::is_base_and_derived<basic_traits,T>,
- boost::mpl::true_,
- boost::mpl::false_
- >::type
- {};
- template<class T>
- struct is_wrapper {
- typedef typename is_wrapper_impl<const T>::type type;
- };
- }
- }
- #define BOOST_CLASS_IS_WRAPPER(T) \
- namespace boost { \
- namespace serialization { \
- template<> \
- struct is_wrapper_impl<const T> : boost::mpl::true_ {}; \
- } \
- } \
- #endif
|