
27 Mar
2008
27 Mar
'08
9:07 a.m.
Benoit wrote:
It's pretty clear in the example you've given that this information is held by the type of the object "edge_weight_property_map". So the bool() operator you're asking for is, in my opinion, not necessary. Play a bit with boost::enable_if and boost::property_map<Graph, edge_weight_t> and you should be able to do what you want.
True, but I was looking for a bit more concise way. PS: This would also blend in well with the "pointer as property map" concept. -- Ares Lagae Computer Graphics Research Group, Katholieke Universiteit Leuven http://www.cs.kuleuven.be/~ares/