25 Feb
2006
25 Feb
'06
3:20 p.m.
yinglcs2@yahoo.com wrote:
What is the easiest way to use boost::lambda library with count_if to count how many item is less than 0.05?
I try the following, but that not work: int no = count_if(myList.begin() myList.end(), _1 < 0.05);
I think we are going to need more information. Can you provide more of the code? This looks fine except you are doing a literal floating point comparison. Be careful with literal floating point comparisons in general. KevinH -- Kevin Heifner heifner @ ociweb.com http://heifner.blogspot.com Object Computing, Inc. (OCI) www.ociweb.com