
10 Feb
2007
10 Feb
'07
5:24 p.m.
me22 wrote:
On 2/9/07, Meryl Silverburgh
wrote: how can I change it so that it compares with the 'y' attribute? like, rect1.y < rect2.y?
As of Boost 1.33: sort(rl.begin(), rl.end(), bind(&Rect::y, _1) < bind(&Rect::y, _2) );
http://boost.org/libs/bind/bind.html#operators
~ Scott McMurray _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Oh, very cool. Thanks for the info Scott. -- Regards, dave