|
Boost : |
From: Ares Lagae (ares.lagae_at_[hidden])
Date: 2008-03-27 05:07:01
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/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk