forked from boostorg/iterator
Remove use of BOOST_ITERATOR_CATEGORY
[SVN r86056]
This commit is contained in:
committed by
Peter Dimov
parent
98db5b4f9a
commit
e6d5c24b91
@ -10,6 +10,7 @@
|
||||
|
||||
namespace boost {
|
||||
|
||||
// Obsolete. Remove.
|
||||
#define BOOST_ITERATOR_CATEGORY iterator_category
|
||||
|
||||
|
||||
@ -39,7 +40,7 @@ struct iterator_difference
|
||||
};
|
||||
|
||||
template <class Iterator>
|
||||
struct BOOST_ITERATOR_CATEGORY
|
||||
struct iterator_category
|
||||
{
|
||||
typedef typename boost::detail::iterator_traits<Iterator>::iterator_category type;
|
||||
};
|
||||
@ -70,7 +71,7 @@ struct iterator_difference<int>
|
||||
};
|
||||
|
||||
template <>
|
||||
struct BOOST_ITERATOR_CATEGORY<int>
|
||||
struct iterator_category<int>
|
||||
{
|
||||
typedef void type;
|
||||
};
|
||||
|
Reference in New Issue
Block a user