|
Boost Users : |
From: Christian Rössel (christian.roessel_at_[hidden])
Date: 2007-08-09 11:17:02
Olaf van der Spek schrieb:
> On 8/8/07, chun ping wang <cablepuff_at_[hidden]> wrote:
>> use bind.
>> try using bind.
>> namespace bll = boost::lambda;
>>
>> std::sort(countries1.begin(), countries1.end(),
>> bll::bind(&countries_t::second, _1) < bll::bind(&countries_t::second, _2));
>
> Does that compile for you?
> It doesn't for me.
> Note that second is not a function.
Change the last line to
bll::bind(&countries_t::second, bll::_1) < bll::bind(&countries_t::second,
bll::_2));
and it should compile.
Regards,
Christian
[snip]
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