1 // Boost.Function library
3 // Copyright (C) 2001, 2002 Doug Gregor (gregod@cs.rpi.edu)
5 // Permission to copy, use, sell and distribute this software is granted
6 // provided this copyright notice appears in all copies.
7 // Permission to modify the code and to distribute modified code is granted
8 // provided this copyright notice appears in all copies, and a notice
9 // that the code was modified is included with the copyright notice.
11 // This software is provided "as is" without express or implied warranty,
12 // and with no claim as to its suitability for any purpose.
14 // For more information, see http://www.boost.org/libs/function
16 // William Kempf, Jesse Jones and Karl Nelson were all very helpful in the
17 // design of this library.
19 #include <boost/preprocessor/iterate.hpp>
20 #include <boost/detail/workaround.hpp>
22 #ifndef BOOST_FUNCTION_MAX_ARGS
23 # define BOOST_FUNCTION_MAX_ARGS 10
24 #endif // BOOST_FUNCTION_MAX_ARGS
26 // Include the prologue here so that the use of file-level iteration
27 // in anything that may be included by function_template.hpp doesn't break
28 #include <boost/function/detail/prologue.hpp>
30 // Visual Age C++ doesn't handle the file iteration well
31 #if BOOST_WORKAROUND(__IBMCPP__, <= 600)
32 # if BOOST_FUNCTION_MAX_ARGS >= 0
33 # include <boost/function/function0.hpp>
35 # if BOOST_FUNCTION_MAX_ARGS >= 1
36 # include <boost/function/function1.hpp>
38 # if BOOST_FUNCTION_MAX_ARGS >= 2
39 # include <boost/function/function2.hpp>
41 # if BOOST_FUNCTION_MAX_ARGS >= 3
42 # include <boost/function/function3.hpp>
44 # if BOOST_FUNCTION_MAX_ARGS >= 4
45 # include <boost/function/function4.hpp>
47 # if BOOST_FUNCTION_MAX_ARGS >= 5
48 # include <boost/function/function5.hpp>
50 # if BOOST_FUNCTION_MAX_ARGS >= 6
51 # include <boost/function/function6.hpp>
53 # if BOOST_FUNCTION_MAX_ARGS >= 7
54 # include <boost/function/function7.hpp>
56 # if BOOST_FUNCTION_MAX_ARGS >= 8
57 # include <boost/function/function8.hpp>
59 # if BOOST_FUNCTION_MAX_ARGS >= 9
60 # include <boost/function/function9.hpp>
62 # if BOOST_FUNCTION_MAX_ARGS >= 10
63 # include <boost/function/function10.hpp>
66 // What is the '3' for?
67 # define BOOST_PP_ITERATION_PARAMS_1 (3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
68 # include BOOST_PP_ITERATE()
69 # undef BOOST_PP_ITERATION_PARAMS_1