[boost][range] - Ticket 5556 - is_sorted namespace issue under GCC 4.5

[SVN r72101]
This commit is contained in:
Neil Groves
2011-05-22 20:20:20 +00:00
parent 3b3889b70f
commit b06fca8378
2 changed files with 38 additions and 0 deletions

View File

@ -157,5 +157,6 @@ test-suite range :
[ range-test string ]
[ range-test sub_range ]
[ range-test ticket_5544_terminate_irange ]
[ range-test ticket_5556_is_sorted_namespace ]
;

View File

@ -0,0 +1,37 @@
// Boost.Range library
//
// Copyright Neil Groves 2011. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
//
// For more information, see http://www.boost.org/libs/range/
//
// Embarrasingly, the mere inclusion of these headers in this order was
// enough to trigger the defect.
#include <boost/range/algorithm.hpp>
#include <boost/range/algorithm_ext.hpp>
#include <boost/test/test_tools.hpp>
#include <boost/test/unit_test.hpp>
namespace boost
{
namespace
{
void test_ticket_5556() {}
}
}
boost::unit_test::test_suite*
init_unit_test_suite(int argc, char* argv[])
{
boost::unit_test::test_suite* test
= BOOST_TEST_SUITE( "RangeTestSuite.ticket_5556" );
test->add( BOOST_TEST_CASE( &boost::test_ticket_5556 ) );
return test;
}