forked from boostorg/range
Merge pull request #155 from Lastique/feature/add_enable_if_convertible_include
Add a dedicated include for enable_if_convertible
This commit is contained in:
@ -14,6 +14,7 @@
|
|||||||
#include <boost/range/adaptor/argument_fwd.hpp>
|
#include <boost/range/adaptor/argument_fwd.hpp>
|
||||||
#include <boost/range/iterator_range.hpp>
|
#include <boost/range/iterator_range.hpp>
|
||||||
#include <boost/iterator/iterator_facade.hpp>
|
#include <boost/iterator/iterator_facade.hpp>
|
||||||
|
#include <boost/iterator/enable_if_convertible.hpp>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
@ -66,7 +67,7 @@ namespace boost
|
|||||||
template<class OtherIterator>
|
template<class OtherIterator>
|
||||||
strided_iterator(
|
strided_iterator(
|
||||||
const strided_iterator<OtherIterator, Category>& other,
|
const strided_iterator<OtherIterator, Category>& other,
|
||||||
typename enable_if_convertible<
|
typename iterators::enable_if_convertible<
|
||||||
OtherIterator,
|
OtherIterator,
|
||||||
base_iterator
|
base_iterator
|
||||||
>::type* = 0
|
>::type* = 0
|
||||||
@ -110,7 +111,7 @@ namespace boost
|
|||||||
template<class OtherIterator>
|
template<class OtherIterator>
|
||||||
bool equal(
|
bool equal(
|
||||||
const strided_iterator<OtherIterator, Category>& other,
|
const strided_iterator<OtherIterator, Category>& other,
|
||||||
typename enable_if_convertible<
|
typename iterators::enable_if_convertible<
|
||||||
OtherIterator,
|
OtherIterator,
|
||||||
base_iterator
|
base_iterator
|
||||||
>::type* = 0) const
|
>::type* = 0) const
|
||||||
@ -177,7 +178,7 @@ namespace boost
|
|||||||
OtherIterator,
|
OtherIterator,
|
||||||
bidirectional_traversal_tag
|
bidirectional_traversal_tag
|
||||||
>& other,
|
>& other,
|
||||||
typename enable_if_convertible<
|
typename iterators::enable_if_convertible<
|
||||||
OtherIterator,
|
OtherIterator,
|
||||||
base_iterator
|
base_iterator
|
||||||
>::type* = 0
|
>::type* = 0
|
||||||
@ -239,7 +240,7 @@ namespace boost
|
|||||||
OtherIterator,
|
OtherIterator,
|
||||||
bidirectional_traversal_tag
|
bidirectional_traversal_tag
|
||||||
>& other,
|
>& other,
|
||||||
typename enable_if_convertible<
|
typename iterators::enable_if_convertible<
|
||||||
OtherIterator,
|
OtherIterator,
|
||||||
base_iterator
|
base_iterator
|
||||||
>::type* = 0) const
|
>::type* = 0) const
|
||||||
@ -308,7 +309,7 @@ namespace boost
|
|||||||
OtherIterator,
|
OtherIterator,
|
||||||
random_access_traversal_tag
|
random_access_traversal_tag
|
||||||
>& other,
|
>& other,
|
||||||
typename enable_if_convertible<
|
typename iterators::enable_if_convertible<
|
||||||
OtherIterator,
|
OtherIterator,
|
||||||
base_iterator
|
base_iterator
|
||||||
>::type* = 0
|
>::type* = 0
|
||||||
@ -372,7 +373,7 @@ namespace boost
|
|||||||
OtherIterator,
|
OtherIterator,
|
||||||
random_access_traversal_tag
|
random_access_traversal_tag
|
||||||
>& other,
|
>& other,
|
||||||
typename enable_if_convertible<
|
typename iterators::enable_if_convertible<
|
||||||
OtherIterator, base_iterator>::type* = 0) const
|
OtherIterator, base_iterator>::type* = 0) const
|
||||||
{
|
{
|
||||||
BOOST_ASSERT((other.m_index - m_index) % m_stride == difference_type());
|
BOOST_ASSERT((other.m_index - m_index) % m_stride == difference_type());
|
||||||
@ -385,7 +386,7 @@ namespace boost
|
|||||||
OtherIterator,
|
OtherIterator,
|
||||||
random_access_traversal_tag
|
random_access_traversal_tag
|
||||||
>& other,
|
>& other,
|
||||||
typename enable_if_convertible<
|
typename iterators::enable_if_convertible<
|
||||||
OtherIterator, base_iterator>::type* = 0) const
|
OtherIterator, base_iterator>::type* = 0) const
|
||||||
{
|
{
|
||||||
return m_index == other.m_index;
|
return m_index == other.m_index;
|
||||||
|
Reference in New Issue
Block a user