Fix compile error
This commit is contained in:
parent
25226cca92
commit
657279949a
@ -1335,12 +1335,14 @@ bool ContainsSameEdge(const TypedValue &a, const TypedValue &b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IsExpansionOk(Frame &frame, const Symbol &expand_symbol, const std::vector<Symbol> &previous_symbols) {
|
bool IsExpansionOk(Frame &frame, const Symbol &expand_symbol, const std::vector<Symbol> &previous_symbols) {
|
||||||
// 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,
|
||||||
return ContainsSameEdge(previous_value, expand_value);
|
[&frame, &expand_value = frame[expand_symbol]](const auto &previous_symbol) {
|
||||||
});
|
const auto &previous_value = frame[previous_symbol];
|
||||||
|
return ContainsSameEdge(previous_value, expand_value);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user