Chris@16: // Boost Lambda Library -- control_constructs_common.hpp ------------------- Chris@16: Chris@16: // Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi) Chris@16: // Copyright (C) 2000 Gary Powell (powellg@amazon.com) Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // For more information, see www.boost.org Chris@16: Chris@16: // -------------------------------------------------------------------------- Chris@16: Chris@16: #if !defined(BOOST_CONTROL_CONSTRUCTS_COMMON_HPP) Chris@16: #define BOOST_CONTROL_CONSTRUCTS_COMMON_HPP Chris@16: Chris@16: namespace boost { Chris@16: namespace lambda { Chris@16: Chris@16: // special types of lambda functors, used with control structures Chris@16: // to guarantee that they are composed correctly. Chris@16: Chris@16: template Chris@16: class tagged_lambda_functor; Chris@16: Chris@16: template Chris@16: class tagged_lambda_functor > Chris@16: : public lambda_functor Chris@16: { Chris@16: public: Chris@16: tagged_lambda_functor(const Args& a) : lambda_functor(a) {} Chris@16: Chris@16: tagged_lambda_functor(const lambda_functor& a) Chris@16: : lambda_functor(a) {} Chris@16: Chris@16: // for the no body cases in control structures. Chris@16: tagged_lambda_functor() : lambda_functor() {} Chris@16: }; Chris@16: Chris@16: } // lambda Chris@16: } // boost Chris@16: Chris@16: #endif // BOOST_CONTROL_CONSTRUCTS_COMMON_HPP Chris@16: Chris@16: Chris@16: Chris@16: Chris@16: Chris@16: Chris@16: