mirror of
https://github.com/boostorg/range.git
synced 2025-08-01 22:04:31 +02:00
Corrected namespace of the pipe operator for the copied adaptor.
[SVN r60901]
This commit is contained in:
@@ -29,21 +29,21 @@ namespace boost
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
template< class CopyableRandomAccessRng, class Int >
|
|
||||||
inline CopyableRandomAccessRng
|
|
||||||
operator|( const CopyableRandomAccessRng& r, const copy_holder<Int>& f )
|
|
||||||
{
|
|
||||||
iterator_range<
|
|
||||||
BOOST_DEDUCED_TYPENAME range_iterator<const
|
|
||||||
CopyableRandomAccessRng>::type >
|
|
||||||
temp( sliced_impl( r, f ) );
|
|
||||||
return CopyableRandomAccessRng( temp.begin(), temp.end() );
|
|
||||||
}
|
|
||||||
|
|
||||||
} // 'range_detail'
|
} // 'range_detail'
|
||||||
|
|
||||||
namespace adaptors
|
namespace adaptors
|
||||||
{
|
{
|
||||||
|
template< class CopyableRandomAccessRng, class Int >
|
||||||
|
inline CopyableRandomAccessRng
|
||||||
|
operator|( const CopyableRandomAccessRng& r, const range_detail::copy_holder<Int>& f )
|
||||||
|
{
|
||||||
|
iterator_range<
|
||||||
|
BOOST_DEDUCED_TYPENAME range_iterator<const
|
||||||
|
CopyableRandomAccessRng>::type >
|
||||||
|
temp( range_detail::sliced_impl( r, f ) );
|
||||||
|
return CopyableRandomAccessRng( temp.begin(), temp.end() );
|
||||||
|
}
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
const range_detail::forwarder2<range_detail::copy_holder>
|
const range_detail::forwarder2<range_detail::copy_holder>
|
||||||
|
Reference in New Issue
Block a user