Boost logo

Boost Users :

From: Wintermantel , Marc (marc.wintermantel_at_[hidden])
Date: 2002-03-20 07:36:35


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<graph_traits<Graph>::vertices_size_type>
dist(num_vertices(G), 0);

 

breadth_first_search

      (G, e, visitor

       (

               make_bfs_visitor(record_distances(dist.begin(),
on_tree_edge() ) )

            )

       );

 

...

 

The errors have something to deal with the visitors, more I could not
read out of the errors. When I use a simple array in the form int d[n]
it works.

 

Yours truly,

 

Marc Wintermantel

 

 

Marc Wintermantel

IMES - Structures Technology

ETH Zurich, LEO C4

Leonhardstrasse 27

CH- 8092 Zurich

Tel. ++41 1 633 35 32

Fax. ++41 1 632 17 02

 

[Non-text portions of this message have been removed]


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