Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Graph set of edges
From: Johan Oudinet (johan.oudinet_at_[hidden])
Date: 2009-03-11 12:40:52


On Thu, May 1, 2008 at 5:29 PM, James Sutherland
<James.Sutherland_at_[hidden]> wrote:
> Can you do something like
>
> typedef boost::graph_traits<Graph>::edge_descriptor   Edge;
> Edge e;
>  ....
> std::set<Edge> edges;
> edgeSet.insert( e );
>
> I am getting compiler errors that imply that the edge_descriptor does
> not implement the < operator.
>
> Thanks,
>

I'm experiencing the same issue... I'd like defining an operator< for
the specific edge_descriptor I have (i.e., I use boost::vecS for the
edge container), but I don't know what kind of type edge_descriptor
is?

Or maybe, I can safety convert an edge_descriptor to a standard type like 'int'?

Regards,

-- 
Johan

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net