
25 Jan
2009
25 Jan
'09
10:42 a.m.
On Sun, Jan 25, 2009 at 9:46 AM, MichaĆ Nowotka
Ok, but there is another problem.
Suppose i defined: typedef MyType std::pair
; So if I want to keep DRY i should write:
lambda::_1 ->*&MyType::value_type::second > lambda::_2 ->*&MyType::value_type::second);
I also tried: bind(&MyType::value_type::second, lambda::_1) > bind(&MyType::value_type::second, lambda::_2)
but none of this expression works for me.
Shouldn't that be &MyType::second - std::pair has no value_type? Stuart Dootson