filtered graph with bundled properties
hi,
i hava a problem using bundled properties with filtered graph. i've modified
the example from the filtered-graph page (
http://www.boost.org/libs/graph/doc/filtered_graph.html) to use edge
properties and woul like to create a filter using these bundled properties,
but am experiencing problems with the types of the property_map and/or
filter. since i'm quite new to c++ and boost i would aprectiate any
suggestin, thanks in advance
i'm using gcc-3.3.5 and boost-1.34
moritz
modified code:
struct myEdge {
int id;
int weight;
};
template <typename EdgeWeightMap>
struct positive_edge_weight {
positive_edge_weight() { }
positive_edge_weight(EdgeWeightMap weight) : m_weight(weight) { }
template <typename Edge>
bool operator()(const Edge& e) const {
return 0 < boost::get(m_weight, e);
}
EdgeWeightMap m_weight;
};
int main()
{
using namespace boost;
typedef adjacency_list
On Jul 26, 2006, at 9:26 AM, moritz Hilger wrote:
error: no matching function for call to ` boost::bundle_property_map
, myEdge, int>:: bundle_property_map()'
Oops, it looks like bundle_property_map needs a default constructor. If you give it an empty default constructor, things should (I think!) work. I've added the default constructor in the CVS version of Boost. Doug
participants (2)
-
Doug Gregor
-
moritz Hilger