Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84643 - trunk/libs/range/test
From: zeratul976_at_[hidden]
Date: 2013-06-04 20:42:42


Author: nathanridge
Date: 2013-06-04 20:42:41 EDT (Tue, 04 Jun 2013)
New Revision: 84643
URL: http://svn.boost.org/trac/boost/changeset/84643

Log:
[range] Fixed a failing test on gcc 4.2 (refs #6944).
Text files modified:
   trunk/libs/range/test/ticket_6944.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/libs/range/test/ticket_6944.cpp
==============================================================================
--- trunk/libs/range/test/ticket_6944.cpp (original)
+++ trunk/libs/range/test/ticket_6944.cpp 2013-06-04 20:42:41 EDT (Tue, 04 Jun 2013)
@@ -20,12 +20,13 @@
 
 namespace boost
 {
+ typedef std::vector<int>::iterator iter_base;
+ struct iter : boost::iterator_adaptor<iter, iter_base, int, boost::use_default, int> {}; // will be deduced as random-access traversal but input category
+ typedef boost::iterator_range<iter> iter_range;
+
     namespace
     {
         // Ticket 6944 - Some Range concepts use the incorrect Iterator concept
- typedef std::vector<int>::iterator iter_base;
- struct iter : boost::iterator_adaptor<iter, iter_base, int, boost::use_default, int> {}; // will be deduced as random-access traversal but input category
- typedef boost::iterator_range<iter> iter_range;
         void test_ticket_6944()
         {
             BOOST_CONCEPT_ASSERT(( boost::RandomAccessRangeConcept<iter_range> ));


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