function_30.cpp 808 B

12345678910111213141516171819202122232425
  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 30
  11. #include <boost/function.hpp>
  12. int main()
  13. {
  14. boost::function0<float> f0;
  15. boost::function30<float, int, int, int, int, int, int, int, int, int, int,
  16. int, int, int, int, int, int, int, int, int, int,
  17. int, int, int, int, int, int, int, int, int, int> f30;
  18. return 0;
  19. }