1 // Boost.Function library
2 
3 //  Copyright Douglas Gregor 2002-2003. Use, modification and
4 //  distribution is subject to the Boost Software License, Version
5 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 //  http://www.boost.org/LICENSE_1_0.txt)
7 
8 // For more information, see http://www.boost.org
9 
10 // Make sure we don't try to redefine function2
11 #include <boost/function/function2.hpp>
12 
13 // Define all Boost.Function class templates up to 30 arguments
14 #define BOOST_FUNCTION_MAX_ARGS 20
15 #include <boost/function.hpp>
16 #undef BOOST_FUNCTION_MAX_ARGS
17 #define BOOST_FUNCTION_MAX_ARGS 40
18 #include <boost/function.hpp>
19 #undef BOOST_FUNCTION_MAX_ARGS
20 #define BOOST_FUNCTION_MAX_ARGS 25
21 #include <boost/function.hpp>
22 #undef BOOST_FUNCTION_MAX_ARGS
23 #define BOOST_FUNCTION_MAX_ARGS 30
24 #include <boost/function.hpp>
25 #include <boost/function.hpp>
26 
main()27 int main()
28 {
29   boost::function0<float> f0;
30 
31   boost::function30<float, int, int, int, int, int, int, int, int, int, int,
32                     int, int, int, int, int, int, int, int, int, int,
33                     int, int, int, int, int, int, int, int, int, int> f30;
34   return 0;
35 }
36