|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2001-06-28 08:42:43
I've just tried to use vector< vector<int> > with BGL and have problems.
vector< vector<int> > g;
vector<int> comp_no;
vector<default_color_type> colors;
vector<int> roots;
vector<int> dtime;
strong_components(g, comp_no);
strong_components(g, &comp_no[0],
color_map(&colors[0]).root_map(&roots[0]));
strong_components(g, &comp_no[0],
color_map(&colors[0]).root_map(&roots[0]).
discover_time(&dtime[0]));
Neither invocation of strong_components compiles. I understand why the first
one doesn't, but third one definitely should. Am I doing something
incorrectly or there's a problem with BGL?
-- Regards, Vladimir
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk