Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75320 - branches/release/boost/fusion/view/iterator_range/detail
From: joel_at_[hidden]
Date: 2011-11-04 21:05:05


Author: djowel
Date: 2011-11-04 21:05:04 EDT (Fri, 04 Nov 2011)
New Revision: 75320
URL: http://svn.boost.org/trac/boost/changeset/75320

Log:
Fix Ticket #6067
Text files modified:
   branches/release/boost/fusion/view/iterator_range/detail/segmented_iterator_range.hpp | 22 ++++++++++++++++------
   1 files changed, 16 insertions(+), 6 deletions(-)

Modified: branches/release/boost/fusion/view/iterator_range/detail/segmented_iterator_range.hpp
==============================================================================
--- branches/release/boost/fusion/view/iterator_range/detail/segmented_iterator_range.hpp (original)
+++ branches/release/boost/fusion/view/iterator_range/detail/segmented_iterator_range.hpp 2011-11-04 21:05:04 EDT (Fri, 04 Nov 2011)
@@ -29,11 +29,21 @@
 // - All other ranges point to ranges
 // - The front of each range in the stack (besides the
 // topmost) is the range above it
-
+
 namespace boost { namespace fusion
 {
     template <typename First, typename Last>
     struct iterator_range;
+
+ namespace result_of
+ {
+ template <typename Sequence, typename T>
+ struct push_back;
+ }
+
+ template <typename Sequence, typename T>
+ typename result_of::push_back<Sequence const, T>::type
+ push_back(Sequence const& seq, T const& x);
 }}
 
 namespace boost { namespace fusion { namespace detail
@@ -117,7 +127,7 @@
             segment_sequence<
                 typename result_of::push_front<
                     rest_type const
- , typename recurse::type
+ , typename recurse::type
>::type
>
         type;
@@ -184,7 +194,7 @@
         {
             return stack.cdr;
         }
- };
+ };
 
     //auto make_segment_sequence_back(stack_end)
     //{
@@ -260,7 +270,7 @@
             segment_sequence<
                 typename result_of::push_back<
                     rest_type const
- , typename recurse::type
+ , typename recurse::type
>::type
>
         type;
@@ -328,7 +338,7 @@
             return stack.cdr;
         }
     };
-
+
     //auto make_segmented_range_reduce(stack_begin, stack_end)
     //{
     // if (size(stack_begin) == 1 && size(stack_end) == 1)
@@ -373,7 +383,7 @@
     template <
         typename StackBegin
       , typename StackEnd
- , bool SameSegment =
+ , bool SameSegment =
             result_of::equal_to<
                 typename StackBegin::car_type::begin_type
               , typename StackEnd::car_type::begin_type


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