Remove use of BOOST_ITERATOR_CATEGORY

[SVN r86056]
This commit is contained in:
Stephen Kelly
2013-09-30 15:54:32 +00:00
committed by Peter Dimov
parent 98db5b4f9a
commit e6d5c24b91

View File

@ -10,6 +10,7 @@
namespace boost { namespace boost {
// Obsolete. Remove.
#define BOOST_ITERATOR_CATEGORY iterator_category #define BOOST_ITERATOR_CATEGORY iterator_category
@ -39,7 +40,7 @@ struct iterator_difference
}; };
template <class Iterator> template <class Iterator>
struct BOOST_ITERATOR_CATEGORY struct iterator_category
{ {
typedef typename boost::detail::iterator_traits<Iterator>::iterator_category type; typedef typename boost::detail::iterator_traits<Iterator>::iterator_category type;
}; };
@ -70,7 +71,7 @@ struct iterator_difference<int>
}; };
template <> template <>
struct BOOST_ITERATOR_CATEGORY<int> struct iterator_category<int>
{ {
typedef void type; typedef void type;
}; };