
5 Mar
2009
5 Mar
'09
1:37 a.m.
Clearly I responded a bit too quickly. You can't use B::getA::test because there is no such function. There is only B::getA and A::value. Without bind, it would not be b.getA::value(), but b.getA().value(). Note this is *two* method invocations. Therefore you must have *two* calls to Bind to create a functor that performs *two* method invocations. bind(&A::value, bind(&B::getA, _1)) == 1 Sorry for the confusion, I read what I meant, not what you wrote. At 05:52 PM 3/4/2009, you wrote:
boost::bind (&B::getA::value, _1)() == 1);