Skip to content

Commit 5666088

Browse files
committed
Move State operator<< to correct place
1 parent fb7aaee commit 5666088

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

include/cpp_event_framework/Statemachine.hxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,14 @@ public:
304304
return name_;
305305
}
306306

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+
307315
protected:
308316
/**
309317
* @brief Construct a new Statemachine State object
@@ -329,14 +337,6 @@ public:
329337
const char* name_ = "Unnamed";
330338
};
331339

332-
/**
333-
* @brief Stream operator for logging
334-
*/
335-
friend inline std::ostream& operator<<(std::ostream& os, StateRef state)
336-
{
337-
return os << state.Name();
338-
}
339-
340340
/**
341341
* @brief History statemachine state
342342
*

0 commit comments

Comments
 (0)