Subject: [Boost-bugs] [Boost C++ Libraries] #2399: Python boost.mpi.Request.test() crashes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-09 21:02:05
#2399: Python boost.mpi.Request.test() crashes
--------------------------------+-------------------------------------------
Reporter: dwchiang_at_[hidden] | Owner: dgregor
Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: mpi
Version: Boost 1.36.0 | Severity: Problem
Keywords: |
--------------------------------+-------------------------------------------
With the addition of the request_with_value type, the wrapper for
request::test() was broken (can't convert optional<status> to Python
type). A fix:
{{{
const object request_test(request &req)
{
::boost::optional<status> stat = req.test();
if (stat)
return object(*stat);
else
return object();
}
}}}
and change the wrapper for Request to use &request_test instead of
&cl::test.
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2399> 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:49:58 UTC