displabed some warnings and applied Ticket #1284: sub_range_copy.patch

[SVN r40376]
This commit is contained in:
Thorsten Jørgen Ottosen
2007-10-23 19:50:59 +00:00
parent 17514e1d44
commit bbd9fdb7bd
2 changed files with 16 additions and 17 deletions

View File

@ -11,6 +11,10 @@
#ifndef BOOST_RANGE_SUB_RANGE_HPP
#define BOOST_RANGE_SUB_RANGE_HPP
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
#pragma warning( disable : 4996 )
#endif
#include <boost/range/config.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/range/value_type.hpp>
@ -38,16 +42,12 @@ namespace boost
public:
sub_range() : base()
{ }
/*
template< class ForwardRange2 >
sub_range( sub_range<ForwardRange2> r ) :
#if BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, <= 800 )
base( impl::adl_begin( r ), impl::adl_end( r ) )
#else
base( r )
#endif */
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
sub_range( const sub_range& r )
: base( static_cast<const base&>( r ) )
{ }
#endif
template< class ForwardRange2 >
sub_range( ForwardRange2& r ) :
@ -86,15 +86,11 @@ namespace boost
{
base::operator=( r );
return *this;
}
}
sub_range& operator=( sub_range r )
sub_range& operator=( const sub_range& r )
{
//
// argument passed by value to avoid
// const_iterator to iterator conversion
//
base::operator=( r );
base::operator=( static_cast<const base&>(r) );
return *this;
}