1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef BOOST_MPI_DETAIL_IGNORE_OPRIMITIVE_HPP
- #define BOOST_MPI_DETAIL_IGNORE_OPRIMITIVE_HPP
- #include <boost/config.hpp>
- #include <boost/mpi/datatype.hpp>
- #include <boost/serialization/array.hpp>
- namespace boost { namespace mpi { namespace detail {
- class ignore_oprimitive
- {
- public:
-
- ignore_oprimitive()
- {}
-
- void save_binary(const void *, std::size_t )
- {
- }
-
- template<class T>
- void save_array(serialization::array_wrapper<T> const&, unsigned int )
- {
- }
- typedef is_mpi_datatype<mpl::_1> use_array_optimization;
- #ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
- friend class archive::save_access;
- protected:
- #else
- public:
- #endif
-
- template<class T>
- void save(const T &)
- {
- }
- };
- } } }
- #endif
|