From: yinglcs2_at_[hidden]
Date: 2006-03-08 00:17:58


Hi,

I am trying to Call for_each with boost::lambda
library to print out the return value of a function:

vector<A> aList;

for_each(aList.begin(), aList.end(), cout <<
bind(&A::getPriority, _1) );

This can't compile. can yo please tell me what did I
do wrong?

          

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com