| 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 30 |
|---|
| 15 | #include <boost/function.hpp> |
|---|
| 16 | |
|---|
| 17 | int main() |
|---|
| 18 | { |
|---|
| 19 | boost::function0<float> f0; |
|---|
| 20 | |
|---|
| 21 | boost::function30<float, int, int, int, int, int, int, int, int, int, int, |
|---|
| 22 | int, int, int, int, int, int, int, int, int, int, |
|---|
| 23 | int, int, int, int, int, int, int, int, int, int> f30; |
|---|
| 24 | return 0; |
|---|
| 25 | } |
|---|