If I use _1 it seems that there is a conflict with the placehodler of boost::lambda
so I switched to using boost::arg<1> to avoid the conflict but I still have an error saying.
TestBoost_Feb18.h:34: error: expected primary-expression before ‘)’ token
If I want to use the placeholders of boos::bind explicitly ( since I am using
explicitly boost::bind ) is boost::arg<n> good?
Below is my code
#include<boost/bind/placeholders>
boost::function< bool(const std::string& ) > fooPtr (
boost::bind( &CA::IsMemberFunction, this, boost::arg<1> ) );
Conoscenza Silente wrote:try boost::bind( &CA::IsMemberFunction, this, _1 )
> Do you know what I am doing wrong?
> Is the signature fine?
> Thanks
Cheers,
Rutger
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users