30 Dec
2009
30 Dec
'09
5:01 p.m.
Igor R wrote:
Another strange behavior:
...
boost::function
f3 = boost::lambda::bind(&Functor::func1, pf1); // lambda bind with shared_ptr and store in function - FAILS
I suspect that you need to dereference the shared_ptr with lambda... *constant(pf1). It doesn't treat smart pointers as a special case in the same way boost::bind does.