Cease dependence on MPL

This commit is contained in:
Nikita Kniazev
2019-11-22 21:06:01 +03:00
committed by Jim King
parent 78eda68f1d
commit 0445694a4f
+2 -2
View File
@@ -38,9 +38,9 @@
#include <algorithm> // for find_if
#include <boost/config.hpp>
#include <boost/assert.hpp>
#include <boost/type_traits/conditional.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/mpl/if.hpp>
#include <boost/throw_exception.hpp>
#if !defined(BOOST_NO_CWCTYPE)
#include <cwctype>
@@ -324,7 +324,7 @@ namespace boost{
// This portably gets the iterator_tag without partial template specialization
template<class Iterator>
struct get_iterator_category{
typedef typename mpl::if_<is_pointer<Iterator>,
typedef typename conditional<is_pointer<Iterator>::value,
pointer_iterator_category<Iterator>,
class_iterator_category<Iterator>
>::type cat;