Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed usage of deprecated header boost/detail/iterator.hpp.
The header was deprecated in favor of <iterator>. It generates compiler
warnings and will be removed in a future release.
  • Loading branch information
Lastique committed May 11, 2020
1 parent ca17604 commit f364ee7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/boost/detail/algorithm.hpp
Expand Up @@ -30,7 +30,7 @@

#ifndef BOOST_ALGORITHM_HPP
#define BOOST_ALGORITHM_HPP
#include <boost/detail/iterator.hpp>

// Algorithms on sequences
//
// The functions in this file have not yet gone through formal
Expand Down
6 changes: 3 additions & 3 deletions include/boost/graph/adjacency_iterator.hpp
Expand Up @@ -10,7 +10,7 @@
#ifndef BOOST_ADJACENCY_ITERATOR_HPP
#define BOOST_ADJACENCY_ITERATOR_HPP

#include <boost/detail/iterator.hpp>
#include <iterator>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/graph/graph_traits.hpp>

Expand Down Expand Up @@ -45,7 +45,7 @@ template < class Graph,
class adjacency_iterator_generator
{
typedef
typename boost::detail::iterator_traits< OutEdgeIter >::difference_type
typename std::iterator_traits< OutEdgeIter >::difference_type
difference_type;

public:
Expand Down Expand Up @@ -81,7 +81,7 @@ template < class Graph,
class inv_adjacency_iterator_generator
{
typedef
typename boost::detail::iterator_traits< InEdgeIter >::difference_type
typename std::iterator_traits< InEdgeIter >::difference_type
difference_type;

public:
Expand Down
5 changes: 3 additions & 2 deletions include/boost/graph/detail/adjacency_list.hpp
Expand Up @@ -21,6 +21,7 @@
#include <boost/range/irange.hpp>
#include <boost/graph/graph_traits.hpp>
#include <memory>
#include <iterator>
#include <algorithm>
#include <boost/limits.hpp>

Expand Down Expand Up @@ -2370,7 +2371,7 @@ namespace detail
typedef typename OutEdgeList::size_type degree_size_type;
typedef typename OutEdgeList::iterator OutEdgeIter;

typedef boost::detail::iterator_traits< OutEdgeIter >
typedef std::iterator_traits< OutEdgeIter >
OutEdgeIterTraits;
typedef
typename OutEdgeIterTraits::iterator_category OutEdgeIterCat;
Expand Down Expand Up @@ -2398,7 +2399,7 @@ namespace detail

// Edge Iterator

typedef boost::detail::iterator_traits< EdgeIter > EdgeIterTraits;
typedef std::iterator_traits< EdgeIter > EdgeIterTraits;
typedef typename EdgeIterTraits::iterator_category EdgeIterCat;
typedef typename EdgeIterTraits::difference_type EdgeIterDiff;

Expand Down
6 changes: 3 additions & 3 deletions include/boost/graph/incremental_components.hpp
Expand Up @@ -13,10 +13,10 @@
#ifndef BOOST_INCREMENTAL_COMPONENTS_HPP
#define BOOST_INCREMENTAL_COMPONENTS_HPP

#include <boost/detail/iterator.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/graph/detail/incremental_components.hpp>
#include <boost/iterator/counting_iterator.hpp>
#include <boost/make_shared.hpp>
#include <boost/smart_ptr/make_shared.hpp>
#include <boost/pending/disjoint_sets.hpp>
#include <iterator>

Expand Down Expand Up @@ -69,7 +69,7 @@ void compress_components(ParentIterator first, ParentIterator last)
}

template < class ParentIterator >
typename boost::detail::iterator_traits< ParentIterator >::difference_type
typename std::iterator_traits< ParentIterator >::difference_type
component_count(ParentIterator first, ParentIterator last)
{
std::ptrdiff_t count = 0;
Expand Down

0 comments on commit f364ee7

Please sign in to comment.