forked from boostorg/range
displabed some warnings and applied Ticket #1284: sub_range_copy.patch
[SVN r40376]
This commit is contained in:
@@ -36,6 +36,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
|
||||||
|
#pragma warning( disable : 4996 )
|
||||||
|
#endif
|
||||||
|
|
||||||
/*! \file
|
/*! \file
|
||||||
Defines the \c iterator_class and related functions.
|
Defines the \c iterator_class and related functions.
|
||||||
|
@@ -11,6 +11,10 @@
|
|||||||
#ifndef BOOST_RANGE_SUB_RANGE_HPP
|
#ifndef BOOST_RANGE_SUB_RANGE_HPP
|
||||||
#define 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/config.hpp>
|
||||||
#include <boost/range/iterator_range.hpp>
|
#include <boost/range/iterator_range.hpp>
|
||||||
#include <boost/range/value_type.hpp>
|
#include <boost/range/value_type.hpp>
|
||||||
@@ -39,15 +43,11 @@ namespace boost
|
|||||||
sub_range() : base()
|
sub_range() : base()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
/*
|
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
|
||||||
template< class ForwardRange2 >
|
sub_range( const sub_range& r )
|
||||||
sub_range( sub_range<ForwardRange2> r ) :
|
: base( static_cast<const base&>( r ) )
|
||||||
|
{ }
|
||||||
#if BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, <= 800 )
|
#endif
|
||||||
base( impl::adl_begin( r ), impl::adl_end( r ) )
|
|
||||||
#else
|
|
||||||
base( r )
|
|
||||||
#endif */
|
|
||||||
|
|
||||||
template< class ForwardRange2 >
|
template< class ForwardRange2 >
|
||||||
sub_range( ForwardRange2& r ) :
|
sub_range( ForwardRange2& r ) :
|
||||||
@@ -88,13 +88,9 @@ namespace boost
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub_range& operator=( sub_range r )
|
sub_range& operator=( const sub_range& r )
|
||||||
{
|
{
|
||||||
//
|
base::operator=( static_cast<const base&>(r) );
|
||||||
// argument passed by value to avoid
|
|
||||||
// const_iterator to iterator conversion
|
|
||||||
//
|
|
||||||
base::operator=( r );
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user