Is there a way to dereference a placeholder inside lambda expression ?
boost::function<int(MyClass*)> f = _1->myMethod();
f(myObject);
I know I can make a binding:
boost::function<int(MyClass*)> f = boost::bind(&MyClass::myMethod, _1);
, but I want to build more complex expression, with if statements and so on.