Subject: [Boost-bugs] [Boost C++ Libraries] #10223: Destructor of boost::mpi::environment should not throw exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-22 01:41:32
#10223: Destructor of boost::mpi::environment should not throw exception
------------------------------+---------------------
Reporter: anonymous | Owner: troyer
Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpi
Version: Boost 1.47.0 | Severity: Problem
Keywords: |
------------------------------+---------------------
The destructor of boost::mpi::environment uses the BOOST_MPI_CHECK_RESULT
macro to invoke MPI_Finalize.
BOOST_MPI_CHECK_RESULT(MPI_Finalize, ());
If MPI_Finalize does not return MPI_SUCCESS, the macro will throw
boost::mpi::exception. However, it is not a good idea for a destructor to
throw.
I suggest the destructor just call MPI_Finalize() without using the MACRO
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10223> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC