diff --git a/core/include/general/common.h b/core/include/general/common.h index 7029922..e7935fe 100644 --- a/core/include/general/common.h +++ b/core/include/general/common.h @@ -32,6 +32,7 @@ #include #include #include +#include namespace std { @@ -118,6 +119,14 @@ struct IsPrintable(declval() << declval { }; +template +std::ostream& +operator<<(std::ostream& os, const std::chrono::duration& d) +{ + os << d.count(); + return os; +} + template ostream & operator<<(ostream &os, const decltype(declval().print(declval()), declval()) &obj) diff --git a/core/include/general/debug.h b/core/include/general/debug.h index 445807d..d597e40 100644 --- a/core/include/general/debug.h +++ b/core/include/general/debug.h @@ -36,13 +36,6 @@ class I_SignalHandler; namespace Config { enum class Errors; } std::ostream & operator<<(std::ostream &, const Config::Errors &); -template -std::ostream& operator<<(std::ostream& os, const std::chrono::duration& d) -{ - os << d.count(); - return os; -} - enum class AlertTeam { CORE, WAAP, SDWAN, IOT }; class AlertInfo