mirror of
https://github.com/boostorg/graph.git
synced 2026-01-19 04:12:11 +00:00
Update usage of deprecated header boost/bind.hpp, add missing includes.
boost/bind.hpp generates compiler warnings about deprecation of placeholders in the global namespace. Updated to include boost/bind/bind.hpp and using namespace boost::placeholders; Also added a few missing includes.
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include <boost/graph/adjacency_list.hpp>
|
||||
#include <boost/graph/depth_first_search.hpp>
|
||||
#include <boost/graph/one_bit_color_map.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include <boost/graph/properties.hpp>
|
||||
#include <boost/pending/indirect_cmp.hpp>
|
||||
#include <boost/property_map/property_map.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/graph/iteration_macros.hpp>
|
||||
#include <boost/graph/depth_first_search.hpp>
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include <numeric>
|
||||
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/limits.hpp>
|
||||
#include <boost/graph/graph_traits.hpp>
|
||||
#include <boost/graph/properties.hpp>
|
||||
|
||||
@@ -10,9 +10,11 @@
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/type_traits/remove_const.hpp>
|
||||
#include <boost/concept_check.hpp>
|
||||
@@ -238,6 +240,8 @@ namespace detail
|
||||
typename graph_traits< Graph >::out_edge_iterator oei, oeie;
|
||||
for (boost::tie(vi, vie) = vertices(m_g); vi != vie; ++vi)
|
||||
{
|
||||
using namespace boost::placeholders;
|
||||
|
||||
boost::tie(oei, oeie) = out_edges(*vi, m_g);
|
||||
typename graph_traits< Graph >::out_edge_iterator mei
|
||||
= std::max_element(oei, oeie,
|
||||
@@ -351,6 +355,8 @@ namespace detail
|
||||
*/
|
||||
float_t policy_mcr()
|
||||
{
|
||||
using namespace boost::placeholders;
|
||||
|
||||
std::fill(m_col_bfs.begin(), m_col_bfs.end(), my_white);
|
||||
color_map_t vcm_ = color_map_t(m_col_bfs.begin(), m_vim);
|
||||
typename graph_traits< Graph >::vertex_iterator uv_itr, vie;
|
||||
|
||||
@@ -11,7 +11,12 @@
|
||||
#ifndef BOOST_GRAPH_KING_HPP
|
||||
#define BOOST_GRAPH_KING_HPP
|
||||
|
||||
#include <deque>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
#include <boost/graph/detail/sparse_ordering.hpp>
|
||||
#include <boost/graph/graph_utility.hpp>
|
||||
|
||||
@@ -44,6 +49,8 @@ namespace detail
|
||||
template < typename Vertex, typename Graph >
|
||||
void finish_vertex(Vertex, Graph& g)
|
||||
{
|
||||
using namespace boost::placeholders;
|
||||
|
||||
typename graph_traits< Graph >::out_edge_iterator ei, ei_end;
|
||||
Vertex v, w;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <algorithm> // for std::min and std::max
|
||||
#include <functional>
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <boost/graph/strong_components.hpp>
|
||||
#include <boost/graph/topological_sort.hpp>
|
||||
#include <boost/graph/graph_concepts.hpp>
|
||||
@@ -131,6 +131,8 @@ void transitive_closure(const Graph& g, GraphTC& tc,
|
||||
std::vector< std::vector< cg_vertex > > CG_vec(num_vertices(CG));
|
||||
for (size_type i = 0; i < num_vertices(CG); ++i)
|
||||
{
|
||||
using namespace boost::placeholders;
|
||||
|
||||
typedef typename boost::graph_traits< CG_t >::adjacency_iterator
|
||||
cg_adj_iter;
|
||||
std::pair< cg_adj_iter, cg_adj_iter > pr = adjacent_vertices(i, CG);
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/graph/dll_import_export.hpp>
|
||||
#include <boost/graph/graphviz.hpp>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user