From b6784ff9f59e1c351cd8dbb041d54b58f4b92289 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 8 Feb 2025 18:19:56 +0300 Subject: [PATCH] Add missing includes, switch to min_category, add iterators namespace. Add missing includes for Boost.Iterator and standard library components. Specifically, enable_if_convertible in Boost.Iterator is now defined in its own header. Use min_category instead of minimum_category as the latter is deprecated. The replacement is a direct equivalent, but doesn't bring the dependency on Boost.MPL and is variadic. Explicitly specify iterators namespace for Boost.Iterator components. --- include/boost/token_iterator.hpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/include/boost/token_iterator.hpp b/include/boost/token_iterator.hpp index 42945d7e..9374207f 100644 --- a/include/boost/token_iterator.hpp +++ b/include/boost/token_iterator.hpp @@ -20,30 +20,33 @@ #include #include -#include +#include +#include +#include #include #include +#include namespace boost { template class token_iterator - : public iterator_facade< + : public iterators::iterator_facade< token_iterator , Type - , typename iterators::minimum_category< + , typename iterators::min_category< forward_traversal_tag - , typename iterator_traversal::type + , typename iterators::iterator_traversal::type >::type , const Type& > { -#ifdef __DCC__ - friend class boost::iterator_core_access; -#else +#ifdef __DCC__ + friend class boost::iterators::iterator_core_access; +#else friend class iterator_core_access; -#endif +#endif TokenizerFunc f_; Iterator begin_; Iterator end_; @@ -85,7 +88,7 @@ namespace boost template token_iterator( token_iterator const& t - , typename enable_if_convertible::type* = 0) + , typename iterators::enable_if_convertible::type* = 0) : f_(t.tokenizer_function()),begin_(t.base()) ,end_(t.end()),valid_(!t.at_end()),tok_(t.current_token()) {}