Hi All,
I am trying to use the poll function (asynchronous version) in this way:

*(g->process_group()).poll(false);

However, I get an assertion failure:
=============================
/usr/local/include/boost/optional/optional.hpp:631: typename 
boost::optional_detail::optional_base<T>::reference_type 
boost::optional<T>::get() [with T = std::pair<int, int>]: Assertion 
`this->is_initialized()' failed.
=============================

I understand that poll function returns the optional<T> object and one 
can check the status of this object to see if an initialized/uninitialized 
object is returned. I tried doing something like:

optional<std::pair<int,int>> 
retval(*(g->process_group()).poll(false))

But still saw the assertion failure. 

Could anyone please tell me if there is a problem with the way I have built the 
parallel BGL library or if my way of using this function is incorrect? I am 
using parallel BGL version 0.7.0.

I would greatly appreciate any hints, solutions.

Thanks,

Nikhil
_______________________________________________
Boost-mpi mailing list
[email protected]
http://lists.boost.org/mailman/listinfo.cgi/boost-mpi

Reply via email to