|
Boost : |
From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2006-12-15 08:15:54
On Tue, 2006-11-28 at 10:34 +0000, Vladimir Sykora wrote:
> Can anyone correct the make_filtered_graph() function on
> boost/graph/filtered_graph.hpp to accept a const Graph& ?
So, you can pass a temporary to make_filtered_graph? Yeah, that should
work. I'll add an overload.
The intent of the current approach is to keep the cv-qualification of
the graph that's passed in.
adjacency_list<...> g;
foo(make_filtered_graph(g, ...)); // filtered_graph of non-const g
const adjacency_list<...>& gc = g;
foo(make_filtered_graph(gc, ...)); // filtered_graph of const g
Cheers,
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk