12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef BOOST_SERIALIZATION_IS_BITWISE_SERIALIZABLE_HPP
- #define BOOST_SERIALIZATION_IS_BITWISE_SERIALIZABLE_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- # pragma once
- #endif
- #include <boost/mpl/bool.hpp>
- #include <boost/type_traits/is_arithmetic.hpp>
- namespace boost {
- namespace serialization {
- template<class T>
- struct is_bitwise_serializable
- : public is_arithmetic<T>
- {};
- }
- }
- #define BOOST_IS_BITWISE_SERIALIZABLE(T) \
- namespace boost { \
- namespace serialization { \
- template<> \
- struct is_bitwise_serializable< T > : mpl::true_ {}; \
- }} \
- #endif
|