mirror of
https://github.com/boostorg/concept_check.git
synced 2025-07-30 12:37:34 +02:00
Remove deprecated includes
A comment in boost/iterator.hpp and boost/detail/iterator.hpp mentions that the files are obsolete and will be deprecated. All they do is pull some types from namespace std into namespace boost. boost/iterator.hpp isn't used anyway.
This commit is contained in:
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
# include <boost/concept/assert.hpp>
|
# include <boost/concept/assert.hpp>
|
||||||
|
|
||||||
# include <boost/iterator.hpp>
|
# include <iterator>
|
||||||
# include <boost/type_traits/conversion_traits.hpp>
|
# include <boost/type_traits/conversion_traits.hpp>
|
||||||
# include <utility>
|
# include <utility>
|
||||||
# include <boost/type_traits/is_same.hpp>
|
# include <boost/type_traits/is_same.hpp>
|
||||||
@ -27,7 +27,6 @@
|
|||||||
# include <boost/mpl/assert.hpp>
|
# include <boost/mpl/assert.hpp>
|
||||||
# include <boost/mpl/bool.hpp>
|
# include <boost/mpl/bool.hpp>
|
||||||
# include <boost/detail/workaround.hpp>
|
# include <boost/detail/workaround.hpp>
|
||||||
# include <boost/detail/iterator.hpp>
|
|
||||||
|
|
||||||
# include <boost/concept/usage.hpp>
|
# include <boost/concept/usage.hpp>
|
||||||
# include <boost/concept/detail/concept_def.hpp>
|
# include <boost/concept/detail/concept_def.hpp>
|
||||||
@ -504,11 +503,11 @@ namespace boost
|
|||||||
: Assignable<TT>
|
: Assignable<TT>
|
||||||
, EqualityComparable<TT>
|
, EqualityComparable<TT>
|
||||||
{
|
{
|
||||||
typedef typename boost::detail::iterator_traits<TT>::value_type value_type;
|
typedef typename std::iterator_traits<TT>::value_type value_type;
|
||||||
typedef typename boost::detail::iterator_traits<TT>::difference_type difference_type;
|
typedef typename std::iterator_traits<TT>::difference_type difference_type;
|
||||||
typedef typename boost::detail::iterator_traits<TT>::reference reference;
|
typedef typename std::iterator_traits<TT>::reference reference;
|
||||||
typedef typename boost::detail::iterator_traits<TT>::pointer pointer;
|
typedef typename std::iterator_traits<TT>::pointer pointer;
|
||||||
typedef typename boost::detail::iterator_traits<TT>::iterator_category iterator_category;
|
typedef typename std::iterator_traits<TT>::iterator_category iterator_category;
|
||||||
|
|
||||||
BOOST_CONCEPT_USAGE(InputIterator)
|
BOOST_CONCEPT_USAGE(InputIterator)
|
||||||
{
|
{
|
||||||
@ -617,7 +616,7 @@ namespace boost
|
|||||||
private:
|
private:
|
||||||
TT a, b;
|
TT a, b;
|
||||||
TT i, j;
|
TT i, j;
|
||||||
typename boost::detail::iterator_traits<TT>::difference_type n;
|
typename std::iterator_traits<TT>::difference_type n;
|
||||||
};
|
};
|
||||||
|
|
||||||
BOOST_concept(Mutable_RandomAccessIterator,(TT))
|
BOOST_concept(Mutable_RandomAccessIterator,(TT))
|
||||||
@ -630,7 +629,7 @@ namespace boost
|
|||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
TT i;
|
TT i;
|
||||||
typename boost::detail::iterator_traits<TT>::difference_type n;
|
typename std::iterator_traits<TT>::difference_type n;
|
||||||
};
|
};
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
Reference in New Issue
Block a user