$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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