3 Mar
2006
3 Mar
'06
7:36 p.m.
Hi, I have a vector of Rect. and I would like to copy those where Rect::getX() equals to certain value. typedef RectList list<Rect>; void handleX(const RectList& rectList, int value, RectList& destList) { transform(rectList.begin(), rectList.end(), back_inserter(destList), if_then ( bind(&Rect::getX, _1) == value , _1 )); } But I can't get it compile. Any help is appreciate. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com