Boost logo

Boost Users :

From: yinglcs2_at_[hidden]
Date: 2006-03-03 14:36:27


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


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