1 // lambda_fwd.hpp - Boost Lambda Library -------------------------------
3 // Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi)
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // For more information, see www.boost.org
11 // -------------------------------------------------------
13 #ifndef BOOST_LAMBDA_FWD_HPP
14 #define BOOST_LAMBDA_FWD_HPP
21 template<class T> struct generate_error;
24 // -- placeholders --------------------------------------------
26 template <int I> struct placeholder;
30 struct function_adaptor;
32 template <int I, class Act> class action;
37 template <class Act, class Args>
38 class lambda_functor_base;
44 // #define CALL_TEMPLATE_ARGS class A, class Env
45 // #define CALL_FORMAL_ARGS A& a, Env& env
46 // #define CALL_ACTUAL_ARGS a, env
47 // #define CALL_ACTUAL_ARGS_NO_ENV a
48 // #define CALL_REFERENCE_TYPES A&, Env&
49 // #define CALL_PLAIN_TYPES A, Env
50 #define CALL_TEMPLATE_ARGS class A, class B, class C, class Env
51 #define CALL_FORMAL_ARGS A& a, B& b, C& c, Env& env
52 #define CALL_ACTUAL_ARGS a, b, c, env
53 #define CALL_ACTUAL_ARGS_NO_ENV a, b, c
54 #define CALL_REFERENCE_TYPES A&, B&, C&, Env&
55 #define CALL_PLAIN_TYPES A, B, C, Env
61 template<class A1, class A2, class A3, class A4>
62 void do_nothing(A1&, A2&, A3&, A4&) {}
68 // prevent the warnings from unused arguments
69 #define CALL_USE_ARGS \
70 ::boost::lambda::detail::do_nothing(a, b, c, env)