Re: [Boost-users] [parallel graph] error building parallel BGL
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_ptrboost::graph::distributed::mpi_process_group::impl' to 'bool' 1) Any ideas? 2) Any location that I can find more examples of the Parallel BGL? Best, Tasos
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_ptrboost::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). -- Jeremiah Willcock
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_ptrboost::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
On Mon, 25 Feb 2013, Steven Watanabe wrote:
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_ptrboost::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.
That's the kind of thing I suspect is occurring; I know that the trunk versions of some Boost components that use shared_ptr were broken for a while. -- Jeremiah Willcock
participants (3)
-
Jeremiah Willcock
-
Steven Watanabe
-
The Maschine