diff --git a/include/cpp_event_framework/Statemachine.hxx b/include/cpp_event_framework/Statemachine.hxx index f546922..33292da 100644 --- a/include/cpp_event_framework/Statemachine.hxx +++ b/include/cpp_event_framework/Statemachine.hxx @@ -304,6 +304,14 @@ public: return name_; } + /** + * @brief Stream operator for logging + */ + friend inline std::ostream& operator<<(std::ostream& os, StateRef state) + { + return os << state.Name(); + } + protected: /** * @brief Construct a new Statemachine State object @@ -329,14 +337,6 @@ public: const char* name_ = "Unnamed"; }; - /** - * @brief Stream operator for logging - */ - friend inline std::ostream& operator<<(std::ostream& os, StateRef state) - { - return os << state.Name(); - } - /** * @brief History statemachine state *