Fix unused lambda capture warnings

This commit is contained in:
Patrick Niklaus
2018-02-02 11:59:30 +00:00
committed by Patrick Niklaus
parent f48dd665ad
commit 97d027a173
7 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -74,7 +74,7 @@ DinicMaxFlow::MinCut DinicMaxFlow::operator()(const BisectionGraphView &view,
// check if the sink can be reached from the source, it's enough to check the border
const auto separated = std::find_if(border_sink_nodes.begin(),
border_sink_nodes.end(),
[&levels, &view](const auto node) {
[&levels](const auto node) {
return levels[node] != INVALID_LEVEL;
}) == border_sink_nodes.end();
@@ -182,10 +182,10 @@ std::size_t DinicMaxFlow::BlockingFlow(FlowEdges &flow,
std::size_t flow_increase = 0;
// augment the flow along a path in the level graph
const auto augment_flow = [&flow, &view](const std::vector<NodeID> &path) {
const auto augment_flow = [&flow](const std::vector<NodeID> &path) {
// add/remove flow edges from the current residual graph
const auto augment_one = [&flow, &view](const NodeID from, const NodeID to) {
const auto augment_one = [&flow](const NodeID from, const NodeID to) {
// check if there is flow in the opposite direction
auto existing_edge = flow[to].find(from);
if (existing_edge != flow[to].end())