Fix compile error

This commit is contained in:
gvolfing 2023-02-08 12:13:46 +01:00
parent 25226cca92
commit 657279949a

View File

@ -1338,7 +1338,9 @@ bool IsExpansionOk(Frame &frame, const Symbol &expand_symbol, const std::vector<
// This shouldn't raise a TypedValueException, because the planner // This shouldn't raise a TypedValueException, because the planner
// makes sure these are all of the expected type. In case they are not // makes sure these are all of the expected type. In case they are not
// an error should be raised long before this code is executed. // an error should be raised long before this code is executed.
return std::ranges::all_of(previous_symbols, [&expand_value = frame[expand_symbol]](const auto& previous_symbol) { return std::ranges::all_of(previous_symbols,
[&frame, &expand_value = frame[expand_symbol]](const auto &previous_symbol) {
const auto &previous_value = frame[previous_symbol];
return ContainsSameEdge(previous_value, expand_value); return ContainsSameEdge(previous_value, expand_value);
}); });
} }