Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60901 - trunk/boost/range/adaptor
From: neil_at_[hidden]
Date: 2010-03-28 14:37:29


Author: neilgroves
Date: 2010-03-28 14:37:28 EDT (Sun, 28 Mar 2010)
New Revision: 60901
URL: http://svn.boost.org/trac/boost/changeset/60901

Log:
Corrected namespace of the pipe operator for the copied adaptor.
Text files modified:
   trunk/boost/range/adaptor/copied.hpp | 32 ++++++++++++++++----------------
   1 files changed, 16 insertions(+), 16 deletions(-)

Modified: trunk/boost/range/adaptor/copied.hpp
==============================================================================
--- trunk/boost/range/adaptor/copied.hpp (original)
+++ trunk/boost/range/adaptor/copied.hpp 2010-03-28 14:37:28 EDT (Sun, 28 Mar 2010)
@@ -21,35 +21,35 @@
         namespace range_detail
         {
                 template< class T >
- struct copy_holder
- : holder2<std::size_t>
+ struct copy_holder
+ : holder2<std::size_t>
                 {
- copy_holder( std::size_t t, std::size_t u )
+ copy_holder( std::size_t t, std::size_t u )
                             : holder2<std::size_t>(t,u)
                         { }
                 };
 
+ } // 'range_detail'
+
+ namespace adaptors
+ {
                 template< class CopyableRandomAccessRng, class Int >
- inline CopyableRandomAccessRng
- operator|( const CopyableRandomAccessRng& r, const copy_holder<Int>& f )
+ inline CopyableRandomAccessRng
+ operator|( const CopyableRandomAccessRng& r, const range_detail::copy_holder<Int>& f )
                 {
- iterator_range<
- BOOST_DEDUCED_TYPENAME range_iterator<const
+ iterator_range<
+ BOOST_DEDUCED_TYPENAME range_iterator<const
                                                                CopyableRandomAccessRng>::type >
- temp( sliced_impl( r, f ) );
+ temp( range_detail::sliced_impl( r, f ) );
                         return CopyableRandomAccessRng( temp.begin(), temp.end() );
                 }
-
- } // 'range_detail'
 
- namespace adaptors
- {
                 namespace
                 {
- const range_detail::forwarder2<range_detail::copy_holder>
+ const range_detail::forwarder2<range_detail::copy_holder>
                      copied = range_detail::forwarder2<range_detail::copy_holder>();
                 }
-
+
                 template<class CopyableRandomAccessRange>
                 inline CopyableRandomAccessRange
                 copy(const CopyableRandomAccessRange& rng, std::size_t t, std::size_t u)
@@ -58,11 +58,11 @@
                         BOOST_DEDUCED_TYPENAME range_iterator<const
                             CopyableRandomAccessRange>::type> temp(
                                 adaptors::slice(rng, t, u));
-
+
             return CopyableRandomAccessRange( temp.begin(), temp.end() );
                 }
         } // 'adaptors'
-
+
 }
 
 #endif


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