From eac09d219b2d1bead90d2f621966731f06043a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Thu, 21 Mar 2002 22:45:48 +0000 Subject: [PATCH] added default consturctors to placeholders (back) [SVN r13238] --- include/boost/lambda/detail/lambda_functors.hpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; }