Boost.Lambda - using member functions
I'm trying to figure out how to use the boost.lambda library, and I'm having
some issues, probably stupid ones, but still, issues. In the following code
I want to remove all obects from m_devices that only have 1 remaining
reference (unique() returns true). Yes, I know that this would be pretty
easy, using regular function pointers, and the like, however, I'm trying to
learn this library.
What am I doing wrong? I would also appreciate any pointers for using
boost.lambda
Whenever I compile the following code on VS2005 I get the following errors:
Warning 1 warning C4512: 'boost::lambda::identity<T>' : assignment operator
could not be generated c:\program files
(x86)\boost\boost_1_34_0\boost\lambda\detail\lambda_functor_base.hpp 43
Warning 2 warning C4512: 'boost::lambda::lambda_functor<T>' : assignment
operator could not be generated c:\program files
(x86)\boost\boost_1_34_0\boost\lambda\detail\lambda_functors.hpp 204
Warning 3 warning C4512: 'boost::lambda::identity<T>' : assignment operator
could not be generated c:\program files
(x86)\boost\boost_1_34_0\boost\lambda\detail\lambda_functor_base.hpp 43
Warning 4 warning C4512: 'boost::lambda::lambda_functor<T>' : assignment
operator could not be generated c:\program files
(x86)\boost\boost_1_34_0\boost\lambda\detail\lambda_functors.hpp 204
Error 5 error C2451: conditional expression of type
'boost::lambda::detail::member_pointer_caller
participants (1)
-
Daniel Dilts