duplicates.cpp 552 B

12345678910111213141516171819202122232425262728
  1. // Copyright Daniel Wallin 2005.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/parameter.hpp>
  6. #include "basics.hpp"
  7. namespace test {
  8. template <typename Params>
  9. void f(Params const &)
  10. {
  11. }
  12. }
  13. int main()
  14. {
  15. test::f((
  16. test::_name = 1
  17. , test::_value = 1
  18. , test::_index = 1
  19. , test::_tester = 1
  20. , test::_value = 1 // repeated keyword: should not compile
  21. ));
  22. return 0;
  23. }