|
Boost-MPI : |
Subject: Re: [Boost-mpi] Compilation error on pynonblocking.cpp
From: Gonzalo BG (gonzalobg88_at_[hidden])
Date: 2014-07-31 05:08:38
Here the corresponding patch for the src/python/py_nonblocking.cpp file (I
can also send a pull-request over github if desired).
On Thu, Jul 31, 2014 at 11:01 AM, Gonzalo BG <gonzalobg88_at_[hidden]> wrote:
> Explicitly converting optional to bool in those two cases (there are two
> test_all calls) fixes the issue, is it possible to get this patched before
> the 1.56.0 release?
>
> This might be a c++11/14 specific bug (I compile with clang-trunk using
> c++1y).
>
> On Thu, Jul 31, 2014 at 10:52 AM, Gonzalo BG <gonzalobg88_at_[hidden]>
> wrote:
>
>> I'm getting the following compilation error on the git master branch
>> mpi py_nonblocking.cpp
>>
>> libs/mpi/src/python/py_nonblocking.cpp:166:14: error: no viable
>> conversion from 'optional<(anonymous
>> namespace)::py_call_output_iterator<boost::mpi::status,
>> std::__1::__wrap_iter<boost::mpi::python::request_with_value *> > >' to
>> 'bool'
>>
>> return test_all(requests.begin(), requests.end(),
>>
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> 1 error generated.
>>
>>
>> when compiling with clang:
>>
>> "clang++" -x c++ -Wl,-flat_namespace -stdlib=libc++ -nostdinc++
>> -std=c++1y -I/Users/gnzlbg/src/env/include/libcxx -O3 -O3
>> -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1
>> -DBOOST_MPI_DYN_LINK=1 -DBOOST_MPI_PYTHON_DYN_LINK=1
>> -DBOOST_PYTHON_DYN_LINK=1 -DNDEBUG -I"." -I"/Users/gnzlbg/src/env/include"
>> -I"/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7"
>> -c -o
>> "/Users/gnzlbg/src/env/boost_build/boost/bin.v2/libs/mpi/build/clang-darwin-4.2.1/release/threading-multi/python/py_nonblocking.o"
>> "libs/mpi/src/python/py_nonblocking.cpp"
>>
>>
>> Any ideas?
>>
>
>
Boost-Commit list run by troyer at boostpro.com