bind_lookup_problem_test.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*==============================================================================
  2. Copyright (c) 2005 Markus Schoepflin
  3. Copyright (c) 2005-2010 Joel de Guzman
  4. Copyright (c) 2010 Thomas Heller
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #include <boost/phoenix/core.hpp>
  9. #include <boost/phoenix/bind.hpp>
  10. template<class T> void value();
  11. void f0() { }
  12. void f1(int) { }
  13. void f2(int, int) { }
  14. void f3(int, int, int) { }
  15. void f4(int, int, int, int) { }
  16. void f5(int, int, int, int, int) { }
  17. void f6(int, int, int, int, int, int) { }
  18. void f7(int, int, int, int, int, int, int) { }
  19. void f8(int, int, int, int, int, int, int, int) { }
  20. void f9(int, int, int, int, int, int, int, int, int) { }
  21. int main()
  22. {
  23. using boost::phoenix::bind;
  24. bind(f0);
  25. bind(f1, 0);
  26. bind(f2, 0, 0);
  27. bind(f3, 0, 0, 0);
  28. bind(f4, 0, 0, 0, 0);
  29. bind(f5, 0, 0, 0, 0, 0);
  30. bind(f6, 0, 0, 0, 0, 0, 0);
  31. bind(f7, 0, 0, 0, 0, 0, 0, 0);
  32. bind(f8, 0, 0, 0, 0, 0, 0, 0, 0);
  33. bind(f9, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  34. return 0;
  35. }