boost_no_arg_dep_lookup.ipp 753 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // (C) Copyright John Maddock 2001.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
  7. // TITLE: Koenig lookup
  8. // DESCRIPTION: Compiler does not implement
  9. // argument-dependent lookup (also named Koenig lookup);
  10. // see std::3.4.2 [basic.koenig.lookup]
  11. namespace boost_no_argument_dependent_lookup{
  12. namespace foobar{
  13. struct test{};
  14. void call_test(const test&)
  15. {}
  16. }
  17. int test()
  18. {
  19. foobar::test t;
  20. call_test(t);
  21. return 0;
  22. }
  23. }