Jeremy,

suppose I got lazy and don't want my graph algorithm to be passed a graph
which does not have internal edge_weight property. What's the best way to
check? I can do

get(edge_weight, g);

but that causes compile error in instantination deeps. What I'd like is something like:

BOOST_STATIC_ASSERT(has_property<edge_weight_t, G>::value);

Is it possible now? If not, is this a reasonable feature?

- Volodya

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to