4 Feb
2010
4 Feb
'10
5:11 p.m.
For example: struct A { void foo(void){}; void foo(void)const{}; };
const A a; lambda::bind(&A::foo,lambda::_1 )(a);
Can I do something to solve this problem?
Bind can't choose the right overload. You have to do this explicitly: const A a; typedef void (A::*ConstFoo)(void); bl::bind((ConstFoo)&A::foo, bl::_1);