and I am trying to use lambda to find a song in c which matches a certain artist and title... .... If I try it = find_if(begin(),end(), boost::bind(&Song::artist,_1) == "a1" ); it fails because "_1" is ambiguos (defined as lambda/placeholder and boost/arg )
using boost::lambda::bind (and not including the "normal" bind ) gives a bunch cryptic errors...
That looks correct (but I'm no expert); could it be a problem with using
"a1" directly? Does something like this work:
#include
I'd also like to know what's the difference between boost::bind and boost::lambda::bind ?
My understanding was the boost::lambda is a superset of bind functionality, so if the lambda library works on your compiler then you should use that. Darren