Boost Users :
Subject: Re: [Boost-users] [lambda] Boost.Bind works, labmda bind fails to compile
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-12-30 12:01:15
Igor R wrote:
> Another strange behavior:
> boost::function<void(void)> 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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net