mirror of
https://github.com/boostorg/range.git
synced 2025-07-29 20:37:25 +02:00
[boost][range] - Ticket 5556 - is_sorted namespace issue under GCC 4.5
[SVN r72101]
This commit is contained in:
@ -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 ]
|
||||
;
|
||||
|
||||
|
37
test/ticket_5556_is_sorted_namespace.cpp
Normal file
37
test/ticket_5556_is_sorted_namespace.cpp
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user