Commit c675db28 authored by Dominik Charousset's avatar Dominik Charousset

Integrate review feedback

parent fb3c7cd7
block_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_typeblock_type
...@@ -30,7 +30,7 @@ bool context::activated(block* ptr) const noexcept { ...@@ -30,7 +30,7 @@ bool context::activated(block* ptr) const noexcept {
bool context::can_run() { bool context::can_run() {
auto pred = [](auto& kvp) { return kvp.second->can_run(); }; auto pred = [](auto& kvp) { return kvp.second->can_run(); };
return !steps.empty() && std::any_of(steps.begin(), steps.end(), pred); return std::any_of(steps.begin(), steps.end(), pred);
} }
block* context::find_predecessor_block(int caller_id, block_type type) { block* context::find_predecessor_block(int caller_id, block_type type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment