
7 Dec
2005
7 Dec
'05
5:38 p.m.
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