summaryrefslogtreecommitdiff
path: root/boost/mpi/exception.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/mpi/exception.hpp')
-rw-r--r--boost/mpi/exception.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/boost/mpi/exception.hpp b/boost/mpi/exception.hpp
index 12523077cc..154a4317c6 100644
--- a/boost/mpi/exception.hpp
+++ b/boost/mpi/exception.hpp
@@ -15,6 +15,7 @@
#include <boost/mpi/config.hpp>
#include <exception>
+#include <cassert>
#include <string>
#include <boost/config.hpp>
#include <boost/throw_exception.hpp>
@@ -94,6 +95,7 @@ class BOOST_MPI_DECL exception : public std::exception
#define BOOST_MPI_CHECK_RESULT( MPIFunc, Args ) \
{ \
int _check_result = MPIFunc Args; \
+ assert(_check_result == MPI_SUCCESS); \
if (_check_result != MPI_SUCCESS) \
boost::throw_exception(boost::mpi::exception(#MPIFunc, \
_check_result)); \