Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56979 - branches/release/boost/mpi/detail
From: troyer_at_[hidden]
Date: 2009-10-18 12:03:53


Author: troyer
Date: 2009-10-18 12:03:53 EDT (Sun, 18 Oct 2009)
New Revision: 56979
URL: http://svn.boost.org/trac/boost/changeset/56979

Log:
replaced MPL_ASSERT by STATIS_ASSERT because of gcc-4.4 bug
Text files modified:
   branches/release/boost/mpi/detail/mpi_datatype_oarchive.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: branches/release/boost/mpi/detail/mpi_datatype_oarchive.hpp
==============================================================================
--- branches/release/boost/mpi/detail/mpi_datatype_oarchive.hpp (original)
+++ branches/release/boost/mpi/detail/mpi_datatype_oarchive.hpp 2009-10-18 12:03:53 EDT (Sun, 18 Oct 2009)
@@ -18,6 +18,7 @@
 #include <boost/mpi/detail/mpi_datatype_primitive.hpp>
 #include <boost/mpi/datatype_fwd.hpp>
 #include <boost/mpl/assert.hpp>
+#include <boost/static_assert.hpp>
 #include <boost/integer.hpp>
 #include <boost/archive/detail/register_archive.hpp>
 
@@ -61,7 +62,7 @@
     {
       // select the right sized integer for the enum
       typedef typename boost::uint_t<8*sizeof(T)>::least int_type;
-// BOOST_MPL_ASSERT((sizeof(T)==sizeof(int_type)));
+ BOOST_STATIC_ASSERT((sizeof(T)==sizeof(int_type)));
       this->save(*reinterpret_cast<int_type const*>(&t));
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk