
27 Apr
2010
27 Apr
'10
midnight
Hi! You only need one template argument: the color map. The other types (color and edge descriptor) can be deduced from the property map: template <typename EdgeColourMap> struct same_edge_colour { same_edge_colour(): t_colour(){ } same_edge_colour(typename EdgeColourMap::value_type a, EdgeColourMap m) : t_colour(a),m_colours(m){ } bool operator()(const typename EdgeColourMap::key_type& e) const { return boost::get(m_colours,e)==t_colour; } typename EdgeColourMap::value_type t_colour; EdgeColourMap m_colours; }; Cheers, Gabe