bind_lookup_problem_test.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // bind_lookup_problem_test.cpp
  3. //
  4. // Copyright (C) Markus Schoepflin 2005.
  5. //
  6. // Use, modification, and distribution are subject to the Boost Software
  7. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #include <boost/bind.hpp>
  11. template<class T> void value();
  12. void f0() { }
  13. void f1(int) { }
  14. void f2(int, int) { }
  15. void f3(int, int, int) { }
  16. void f4(int, int, int, int) { }
  17. void f5(int, int, int, int, int) { }
  18. void f6(int, int, int, int, int, int) { }
  19. void f7(int, int, int, int, int, int, int) { }
  20. void f8(int, int, int, int, int, int, int, int) { }
  21. void f9(int, int, int, int, int, int, int, int, int) { }
  22. int main()
  23. {
  24. boost::bind(f0);
  25. boost::bind(f1, 0);
  26. boost::bind(f2, 0, 0);
  27. boost::bind(f3, 0, 0, 0);
  28. boost::bind(f4, 0, 0, 0, 0);
  29. boost::bind(f5, 0, 0, 0, 0, 0);
  30. boost::bind(f6, 0, 0, 0, 0, 0, 0);
  31. boost::bind(f7, 0, 0, 0, 0, 0, 0, 0);
  32. boost::bind(f8, 0, 0, 0, 0, 0, 0, 0, 0);
  33. boost::bind(f9, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  34. return 0;
  35. }