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
14#include <boost/test/test_tools.hpp>
15#include <boost/test/unit_test.hpp>
16
17#include <vector>
18
19namespace boost
20{
21 namespace
22 {
23
24 // Ticket 5547 - boost::join ambiguous with algorithm::join
25 void test_ticket_5547()
26 {
27 std::vector<int> x;
28 boost::range::join(r1&: x,r2&: x);
29 }
30 }
31}
32
33boost::unit_test::test_suite*
34init_unit_test_suite(int argc, char* argv[])
35{
36 boost::unit_test::test_suite* test
37 = BOOST_TEST_SUITE( "RangeTestSuite.ticket_5547" );
38
39 test->add( BOOST_TEST_CASE( &boost::test_ticket_5547 ) );
40
41 return test;
42}
43

source code of boost/libs/range/test/ticket_5547.cpp