ticket_5547.cpp 987 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Boost.Range library
  2. //
  3. // Copyright Neil Groves 2011. Use, modification and
  4. // distribution is subject to the Boost Software License, Version
  5. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. //
  9. // For more information, see http://www.boost.org/libs/range/
  10. //
  11. #include <boost/algorithm/string/join.hpp>
  12. #include <boost/range/join.hpp>
  13. #include <boost/test/test_tools.hpp>
  14. #include <boost/test/unit_test.hpp>
  15. #include <vector>
  16. namespace boost
  17. {
  18. namespace
  19. {
  20. // Ticket 5547 - boost::join ambiguous with algorithm::join
  21. void test_ticket_5547()
  22. {
  23. std::vector<int> x;
  24. boost::range::join(x,x);
  25. }
  26. }
  27. }
  28. boost::unit_test::test_suite*
  29. init_unit_test_suite(int argc, char* argv[])
  30. {
  31. boost::unit_test::test_suite* test
  32. = BOOST_TEST_SUITE( "RangeTestSuite.ticket_5547" );
  33. test->add( BOOST_TEST_CASE( &boost::test_ticket_5547 ) );
  34. return test;
  35. }