Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56978 - trunk/boost/mpi/detail
From: troyer_at_[hidden]
Date: 2009-10-18 12:03:47


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

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

Modified: trunk/boost/mpi/detail/mpi_datatype_oarchive.hpp
==============================================================================
--- trunk/boost/mpi/detail/mpi_datatype_oarchive.hpp (original)
+++ trunk/boost/mpi/detail/mpi_datatype_oarchive.hpp 2009-10-18 12:03:46 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