Skip to content

Commit 0295306

Browse files
committed
chore: fix warnings
1 parent fb0c805 commit 0295306

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/boost/geometry/algorithms/detail/overlay/graph/assign_counts.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,22 @@ void assign_counts(Turn& turn)
8080
}
8181
};
8282

83-
auto assign_left_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
83+
auto assign_left_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
8484
{
8585
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_left = count; });
8686
};
8787

88-
auto assign_right_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
88+
auto assign_right_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
8989
{
9090
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_right = count; });
9191
};
9292

93-
auto assign_left_incoming_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
93+
auto assign_left_incoming_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
9494
{
9595
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_left_incoming = count; });
9696
};
9797

98-
auto assign_right_incoming_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
98+
auto assign_right_incoming_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
9999
{
100100
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_right_incoming = count; });
101101
};

include/boost/geometry/algorithms/detail/overlay/graph/detect_biconnected_components.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ template <typename Turns, typename Clusters, typename Graph, typename Components
162162
void assign_biconnected_component_ids(Turns& turns, Clusters const& clusters, bool allow_closed,
163163
Graph const& graph, Components const& component, state_type const& state)
164164
{
165-
auto node_id_from_it = [&state](auto const& it)
165+
auto node_id_from_it = [](auto const& it)
166166
{
167167
return it->second.is_extra
168168
? it->second.original_node_id

0 commit comments

Comments
 (0)