We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb7aaee commit 5666088Copy full SHA for 5666088
1 file changed
include/cpp_event_framework/Statemachine.hxx
@@ -304,6 +304,14 @@ public:
304
return name_;
305
}
306
307
+ /**
308
+ * @brief Stream operator for logging
309
+ */
310
+ friend inline std::ostream& operator<<(std::ostream& os, StateRef state)
311
+ {
312
+ return os << state.Name();
313
+ }
314
+
315
protected:
316
/**
317
* @brief Construct a new Statemachine State object
@@ -329,14 +337,6 @@ public:
329
337
const char* name_ = "Unnamed";
330
338
};
331
339
332
- /**
333
- * @brief Stream operator for logging
334
- */
335
- friend inline std::ostream& operator<<(std::ostream& os, StateRef state)
336
- {
- return os << state.Name();
- }
-
340
341
* @brief History statemachine state
342
*
0 commit comments