Lines 19-22
Link Here
|
19 |
#include <boost/mpi/datatype_fwd.hpp> |
19 |
#include <boost/mpi/datatype_fwd.hpp> |
20 |
#include <boost/mpl/assert.hpp> |
20 |
#include <boost/mpl/assert.hpp> |
|
|
21 |
#include <boost/static_assert.hpp> |
21 |
#include <boost/integer.hpp> |
22 |
#include <boost/integer.hpp> |
22 |
#include <boost/archive/detail/register_archive.hpp> |
23 |
#include <boost/archive/detail/register_archive.hpp> |
Lines 62-66
Link Here
|
62 |
// select the right sized integer for the enum |
63 |
// select the right sized integer for the enum |
63 |
typedef typename boost::uint_t<8*sizeof(T)>::least int_type; |
64 |
typedef typename boost::uint_t<8*sizeof(T)>::least int_type; |
64 |
BOOST_MPL_ASSERT((sizeof(T)==sizeof(int_type))); |
65 |
BOOST_STATIC_ASSERT((sizeof(T)==sizeof(int_type))); |
65 |
this->save(*reinterpret_cast<int_type const*>(&t)); |
66 |
this->save(*reinterpret_cast<int_type const*>(&t)); |
66 |
} |
67 |
} |