Chris@16: // lambda_fwd.hpp - Boost Lambda Library ------------------------------- Chris@16: Chris@16: // Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi) 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: #ifndef BOOST_LAMBDA_FWD_HPP Chris@16: #define BOOST_LAMBDA_FWD_HPP Chris@16: Chris@16: namespace boost { Chris@16: namespace lambda { Chris@16: Chris@16: namespace detail { Chris@16: Chris@16: template struct generate_error; Chris@16: Chris@16: } Chris@16: // -- placeholders -------------------------------------------- Chris@16: Chris@16: template struct placeholder; Chris@16: Chris@16: // function_adaptors Chris@16: template Chris@16: struct function_adaptor; Chris@16: Chris@16: template class action; Chris@16: Chris@16: template Chris@16: class lambda_functor; Chris@16: Chris@16: template Chris@16: class lambda_functor_base; Chris@16: Chris@16: } // namespace lambda Chris@16: } // namespace boost Chris@16: Chris@16: Chris@16: // #define CALL_TEMPLATE_ARGS class A, class Env Chris@16: // #define CALL_FORMAL_ARGS A& a, Env& env Chris@16: // #define CALL_ACTUAL_ARGS a, env Chris@16: // #define CALL_ACTUAL_ARGS_NO_ENV a Chris@16: // #define CALL_REFERENCE_TYPES A&, Env& Chris@16: // #define CALL_PLAIN_TYPES A, Env Chris@16: #define CALL_TEMPLATE_ARGS class A, class B, class C, class Env Chris@16: #define CALL_FORMAL_ARGS A& a, B& b, C& c, Env& env Chris@16: #define CALL_ACTUAL_ARGS a, b, c, env Chris@16: #define CALL_ACTUAL_ARGS_NO_ENV a, b, c Chris@16: #define CALL_REFERENCE_TYPES A&, B&, C&, Env& Chris@16: #define CALL_PLAIN_TYPES A, B, C, Env Chris@16: Chris@16: namespace boost { Chris@16: namespace lambda { Chris@16: namespace detail { Chris@16: Chris@16: template Chris@16: void do_nothing(A1&, A2&, A3&, A4&) {} Chris@16: Chris@16: } // detail Chris@16: } // lambda Chris@16: } // boost Chris@16: Chris@16: // prevent the warnings from unused arguments Chris@16: #define CALL_USE_ARGS \ Chris@16: ::boost::lambda::detail::do_nothing(a, b, c, env) Chris@16: Chris@16: Chris@16: Chris@16: #endif