- /**
- * @brief The outgoing transition: what was the last transition that we took to leave this state?
- *
- * The owner of the transition is the `ActorState` instance which exists in this state.
- */
- Transition* transition_ = nullptr;
+ /** @brief The outgoing transition is the last transition that we took to leave this state. */
+ std::shared_ptr<Transition> outgoing_transition_ = nullptr;