Skip to content

Commit ed4033f

Browse files
committed
Avoid using deprecated header boost/detail/iterator.hpp.
This header is deprecated in favor of <iterator> and will be removed in a future release. This silences deprecation warnings.
1 parent 6d86fb3 commit ed4033f

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

include/boost/algorithm/string/detail/finder.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <boost/algorithm/string/config.hpp>
1515
#include <boost/algorithm/string/constants.hpp>
16-
#include <boost/detail/iterator.hpp>
16+
#include <iterator>
1717

1818
#include <boost/range/iterator_range_core.hpp>
1919
#include <boost/range/begin.hpp>
@@ -127,8 +127,8 @@ namespace boost {
127127
if( boost::empty(m_Search) )
128128
return result_type( End, End );
129129

130-
typedef BOOST_STRING_TYPENAME boost::detail::
131-
iterator_traits<ForwardIteratorT>::iterator_category category;
130+
typedef BOOST_STRING_TYPENAME
131+
std::iterator_traits<ForwardIteratorT>::iterator_category category;
132132

133133
return findit( Begin, End, category() );
134134
}
@@ -375,8 +375,8 @@ namespace boost {
375375
ForwardIteratorT End,
376376
unsigned int N )
377377
{
378-
typedef BOOST_STRING_TYPENAME boost::detail::
379-
iterator_traits<ForwardIteratorT>::iterator_category category;
378+
typedef BOOST_STRING_TYPENAME
379+
std::iterator_traits<ForwardIteratorT>::iterator_category category;
380380

381381
return ::boost::algorithm::detail::find_head_impl( Begin, End, N, category() );
382382
}
@@ -448,8 +448,8 @@ namespace boost {
448448
ForwardIteratorT End,
449449
unsigned int N )
450450
{
451-
typedef BOOST_STRING_TYPENAME boost::detail::
452-
iterator_traits<ForwardIteratorT>::iterator_category category;
451+
typedef BOOST_STRING_TYPENAME
452+
std::iterator_traits<ForwardIteratorT>::iterator_category category;
453453

454454
return ::boost::algorithm::detail::find_tail_impl( Begin, End, N, category() );
455455
}

include/boost/algorithm/string/detail/trim.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define BOOST_STRING_TRIM_DETAIL_HPP
1313

1414
#include <boost/algorithm/string/config.hpp>
15-
#include <boost/detail/iterator.hpp>
15+
#include <iterator>
1616

1717
namespace boost {
1818
namespace algorithm {
@@ -80,8 +80,8 @@ namespace boost {
8080
ForwardIteratorT InEnd,
8181
PredicateT IsSpace )
8282
{
83-
typedef BOOST_STRING_TYPENAME boost::detail::
84-
iterator_traits<ForwardIteratorT>::iterator_category category;
83+
typedef BOOST_STRING_TYPENAME
84+
std::iterator_traits<ForwardIteratorT>::iterator_category category;
8585

8686
return ::boost::algorithm::detail::trim_end_iter_select( InBegin, InEnd, IsSpace, category() );
8787
}

include/boost/algorithm/string/predicate.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef BOOST_STRING_PREDICATE_HPP
1212
#define BOOST_STRING_PREDICATE_HPP
1313

14+
#include <iterator>
1415
#include <boost/algorithm/string/config.hpp>
1516
#include <boost/range/begin.hpp>
1617
#include <boost/range/end.hpp>
@@ -144,10 +145,10 @@ namespace boost {
144145
iterator_range<BOOST_STRING_TYPENAME range_const_iterator<Range1T>::type> lit_input(::boost::as_literal(Input));
145146
iterator_range<BOOST_STRING_TYPENAME range_const_iterator<Range2T>::type> lit_test(::boost::as_literal(Test));
146147

147-
typedef BOOST_STRING_TYPENAME
148+
typedef BOOST_STRING_TYPENAME
148149
range_const_iterator<Range1T>::type Iterator1T;
149-
typedef BOOST_STRING_TYPENAME boost::detail::
150-
iterator_traits<Iterator1T>::iterator_category category;
150+
typedef BOOST_STRING_TYPENAME
151+
std::iterator_traits<Iterator1T>::iterator_category category;
151152

152153
return detail::
153154
ends_with_iter_select(

0 commit comments

Comments
 (0)