FairRootGroup/FairMQ

Improve `bool ChangeState()` API

Closed this issue · 0 comments

Based on user feedback it seems easy to miss a return value of false (which usually means that the requested transition is illegal in the current state). Possible ideas to improve here were discussed:

  • Add [[nodiscard]]
  • Throw instead (would also naturally lead to error state if not handled - which the user is in favor for)