- xbt_assert(state_ == inited || state_ == started, "Cannot change the host of an exec once it's done (state: %d)", state_);
- if (state_ == started)
+ xbt_assert(state_ == State::inited || state_ == State::started,
+ "Cannot change the host of an exec once it's done (state: %d)", (int)state_);
+ if (state_ == State::started)