
15 Dec
2006
15 Dec
'06
1:15 p.m.
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