Skip to content

Commit

Permalink
fix: fix build errors in debug mode in RelativeClearanceCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Oct 1, 2024
1 parent 37f3aed commit 67e36f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ auto RelativeClearanceCondition::evaluate() -> Object
};

return asBoolean(triggering_entities.apply([&](const auto & triggering_scenario_object) {
assert(triggering_scenario_object.is<ScenarioObject>());
assert(triggering_scenario_object.template is<ScenarioObject>());
if (not entity_refs.empty()) {
return std::all_of(
entity_refs.begin(), entity_refs.end(), [&](const auto & target_entity_ref) {
Expand Down Expand Up @@ -181,7 +181,7 @@ auto RelativeClearanceCondition::evaluate() -> Object
bool is_included = false;
triggering_entities.apply(
[target_candidate, &is_included](const auto & triggering_scenario_object) {
assert(triggering_scenario_object.is<ScenarioObject>());
assert(triggering_scenario_object.template is<ScenarioObject>());
if (triggering_scenario_object.name() == target_candidate.name) {
is_included = true;
}
Expand Down

0 comments on commit 67e36f0

Please sign in to comment.