Commit 35bd34a0 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Remove more compiler warnings with clang

parent 0507fe70
Pipeline #13 failed with stage
......@@ -51,9 +51,9 @@ namespace boost
BOOST_CONCEPT_USAGE(TSPVertexVisitorConcept)
{
Visitor vis(vis_); // require copy construction
Graph* g;
Graph* g = nullptr;
Vertex v(*vertices(*g).first);
vis_.visit_vertex(v, *g); // require visit_vertex
vis.visit_vertex(v, *g); // require visit_vertex
}
};
......
......@@ -48,7 +48,7 @@ sum_degree(Graph& g, typename graph_traits<Graph>::vertex_descriptor v,
template <class Graph, class EdgeSelector>
double
sum_degree(Graph& g, typename graph_traits<Graph>::vertex_descriptor v,
ConstantPropertyMap<double, GraphInterface::edge_t> w, all_edges_iteratorS<Graph>)
ConstantPropertyMap<double, GraphInterface::edge_t>, all_edges_iteratorS<Graph>)
{
return total_degreeS()(v, g);
}
......@@ -56,7 +56,7 @@ sum_degree(Graph& g, typename graph_traits<Graph>::vertex_descriptor v,
template <class Graph, class EdgeSelector>
double
sum_degree(Graph& g, typename graph_traits<Graph>::vertex_descriptor v,
ConstantPropertyMap<double, GraphInterface::edge_t> w, in_edge_iteratorS<Graph>)
ConstantPropertyMap<double, GraphInterface::edge_t>, in_edge_iteratorS<Graph>)
{
return in_degreeS()(v, g);
}
......@@ -64,7 +64,7 @@ sum_degree(Graph& g, typename graph_traits<Graph>::vertex_descriptor v,
template <class Graph, class EdgeSelector>
double
sum_degree(Graph& g, typename graph_traits<Graph>::vertex_descriptor v,
ConstantPropertyMap<double, GraphInterface::edge_t> w, out_edge_iteratorS<Graph>)
ConstantPropertyMap<double, GraphInterface::edge_t>, out_edge_iteratorS<Graph>)
{
return out_degreeS()(v, g);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment