diff --git a/include/boost/lambda/detail/lambda_functors.hpp b/include/boost/lambda/detail/lambda_functors.hpp index c03a5f3..ab1d0ef 100644 --- a/include/boost/lambda/detail/lambda_functors.hpp +++ b/include/boost/lambda/detail/lambda_functors.hpp @@ -112,12 +112,15 @@ typedef const lambda_functor > placeholder3_type; template class lambda_functor > { public: + lambda_functor() {} BOOST_LAMBDA_LAMBDA_FUNCTOR_ASSIGNMENT BOOST_LAMBDA_LAMBDA_FUNCTOR_SUBSCRIPT }; +template<> class lambda_functor > { public: + lambda_functor() {} template A& operator()(A& a) const { return a; } @@ -125,8 +128,10 @@ BOOST_LAMBDA_LAMBDA_FUNCTOR_ASSIGNMENT BOOST_LAMBDA_LAMBDA_FUNCTOR_SUBSCRIPT }; +template<> class lambda_functor > { public: + lambda_functor() {} template B& operator()(A&, B& b) const { return b; } @@ -139,8 +144,10 @@ BOOST_LAMBDA_LAMBDA_FUNCTOR_ASSIGNMENT BOOST_LAMBDA_LAMBDA_FUNCTOR_SUBSCRIPT }; +template<> class lambda_functor > { public: + lambda_functor() {} template C& operator()(A&, B&, C& c) const { return c; }