ActorState(aid_t aid, bool enabled, unsigned int max_consider) : ActorState(aid, enabled, max_consider, {}) {}
ActorState(aid_t aid, bool enabled, unsigned int max_consider, std::vector<std::unique_ptr<Transition>> transitions)
- : aid_(aid), max_consider_(max_consider), enabled_(enabled), pending_transitions_(std::move(transitions))
+ : pending_transitions_(std::move(transitions)), aid_(aid), max_consider_(max_consider), enabled_(enabled)
{
}
// of 3 transitions, that is ignored here since that invariant needs to be enforced on the AppSide
const auto expected_transitions = std::accumulate(
status.begin(), status.end(), 0, [](int total, const auto& actor) { return total + actor.n_transitions; });
- xbt_assert(expected_transitions == action_pool.size(),
+ xbt_assert(expected_transitions == static_cast<int>(action_pool.size()),
"Expected to receive %d transition(s) but was only notified of %lu by the app side", expected_transitions,
action_pool.size());