Boost logo

Boost :

From: Benoit (benoit.casoetto_at_[hidden])
Date: 2008-03-27 03:49:03


Hello,

If i understand correctly, what you're asking is to be able to detect
if a property is part of a graph or not.

> edge_weight_property_map = get(edge_weight, graph);
> if (edge_weight_property_map ) {...}

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.

Benoît


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk