Boost logo

Boost :

From: hankel_o_fung_at_[hidden]
Date: 2001-03-02 10:15:46


--- In boost_at_y..., hankel_o_fung_at_y... wrote:
>
> The following program doesn't compile using VC++6 SP4 with
> Boost 1.20.2. Why not?
>
> #include <boost/graph/adjacency_list.hpp>
>
> int main()
> {
> using namespace boost;
> adjacency_list<> G;
> adjacency_list<>::vertex_iterator ui, vi, uend, vend;
> for (tie(ui, uend)=vertices(G); ui != uend; ++ui)
> for (tie(vi, vend)=adjacent_vertices(*ui, G); vi != vend; ++vi)
{}
>
> return 0;
> }

Oops, what a silly mistake. Iterators vi, vend should be
adjacency_iterator's.

Hankel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk