mirror of
https://github.com/boostorg/tokenizer.git
synced 2026-07-21 13:33:31 +00:00
Cease dependence on MPL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user