BFS-visitor with gcc3.0.1
Hello,
I tried to complile the following code that worked under gcc 2.95.3
under gcc 3.0.1 and got tons of error messages:
typedef adjacency_list<
setS,
vecS,
undirectedS,
property<
vertex_color_t,
default_color_type,
property<
vertex_degree_t,
int,
property<
vertex_current_degree_t,
int,
property<
vertex_priority_t,
int > > > > > Graph;
...
std::vector
Hi Marc,
I think your problem is that BGL has get() and put() property map
functions defined for pointers, but vector::iterator is not guaranteed to
be a pointer.
The fix is to wrap vector::iterator using the iterator_property_map class.
Cheers,
Jeremy
On Wed, 20 Mar 2002, Wintermantel , Marc wrote:
marc.w> Hello,
marc.w>
marc.w>
marc.w>
marc.w> I tried to complile the following code that worked under gcc 2.95.3
marc.w> under gcc 3.0.1 and got tons of error messages:
marc.w>
marc.w>
marc.w>
marc.w> typedef adjacency_list<
marc.w>
marc.w> setS,
marc.w>
marc.w> vecS,
marc.w>
marc.w> undirectedS,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_color_t,
marc.w>
marc.w> default_color_type,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_degree_t,
marc.w>
marc.w> int,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_current_degree_t,
marc.w>
marc.w> int,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_priority_t,
marc.w>
marc.w> int > > > > > Graph;
marc.w>
marc.w>
marc.w>
marc.w> ...
marc.w>
marc.w>
marc.w>
marc.w> std::vector
participants (2)
-
Jeremy Siek
-
Wintermantel , Marc