
28 Nov
2006
28 Nov
'06
10:13 p.m.
rodolfo@rodsoft.org wrote:
Hi, I'm trying to put a simple lambda functor which uses pointer to member function into a boost::function like this:
struct aux { int a() const { return 5; } };
int main() { function
f = &_1->*&aux::a; } But the compiler chokes at the assignment with the error:
/usr/include/boost/function/function_template.hpp:119: error: cannot convert 'boost::lambda::detail::member_pointer_caller
' to 'int' in return
Try
function