Boost logo

Boost Users :

Subject: Re: [Boost-users] [parallel graph] error building parallel BGL
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-02-25 11:23:42


AMDG

On 02/25/2013 08:05 AM, Jeremiah Willcock wrote:
> On Mon, 25 Feb 2013, The Maschine wrote:
>
>> Hi Jeremiah,
>> I can confirm that ParallelBGL that comes with 1.53 compiles.
>> The problem with this one is that when I try to compile the example
>> (again from 1.53) I get this problem:
>>
>> /usr/local/include/boost/graph/distributed/mpi_process_group.hpp:419:28:
>> No viable conversion from
>> 'shared_ptr<boost::graph::distributed::mpi_process_group::impl>' to
>> 'bool'
>>
>> 1) Any ideas?
>> 2) Any location that I can find more examples of the Parallel BGL?
>
> Where is the example that you are trying from? The ones in the Boost
> tree all pass for me. If you write a simple test that just makes a
> Boost shared_ptr<int> and tries to convert it to a bool, does that work
> (even an implicit conversion should work, I think).
>

I think shared_ptr was recently changed to use

explicit operator bool

in C++11.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net