function_30_repeat.cpp 1.1 KB

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