
-----Original Message----- From: Chris Hite [mailto:C.Hite@rtsgroup.net]
#include
#include //comment this line out and it compiles int foo(const char*);
void test(){ using namespace boost::lambda; bind(foo,_1); }
You've created a conflict among the placeholders. Both bind and lambda::bind
declare _1. bind declares its placeholders at global scope, but lambda
includes in the lambda namespace.
Either use one or the other or don't use the "using namespace
boost::lambda". What I usually do is alias the lambda namespace for brevity.
#include