Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72101 - trunk/libs/range/test
From: neil_at_[hidden]
Date: 2011-05-22 16:20:20


Author: neilgroves
Date: 2011-05-22 16:20:20 EDT (Sun, 22 May 2011)
New Revision: 72101
URL: http://svn.boost.org/trac/boost/changeset/72101

Log:
[boost][range] - Ticket 5556 - is_sorted namespace issue under GCC 4.5
Added:
   trunk/libs/range/test/ticket_5556_is_sorted_namespace.cpp (contents, props changed)
Text files modified:
   trunk/libs/range/test/Jamfile.v2 | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/libs/range/test/Jamfile.v2
==============================================================================
--- trunk/libs/range/test/Jamfile.v2 (original)
+++ trunk/libs/range/test/Jamfile.v2 2011-05-22 16:20:20 EDT (Sun, 22 May 2011)
@@ -157,5 +157,6 @@
         [ range-test string ]
         [ range-test sub_range ]
         [ range-test ticket_5544_terminate_irange ]
+ [ range-test ticket_5556_is_sorted_namespace ]
     ;
 

Added: trunk/libs/range/test/ticket_5556_is_sorted_namespace.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/range/test/ticket_5556_is_sorted_namespace.cpp 2011-05-22 16:20:20 EDT (Sun, 22 May 2011)
@@ -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;
+}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk