Boost logo

Boost Users :

From: Frank Astier (fastier_at_[hidden])
Date: 2005-12-07 12:38:25


Hi -

I'm trying to combine lambda and tuples in the following code:

typedef std::vector<boost::tuple<Sequence, float, Alpha*> > Paths;

sort(paths.begin(), paths.end(), bind(get<1>(), _1) > bind(get<1>(),
_2));

But this won't compile, and I can't seem to figure out the correct
way to have sort work on get<1> of each tuple in the vector... Any hint?

Frank


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