logvisor: Make Module constructor constexpr

Allows the module instances to be constructed at compile time.
Otherwise, this is technically a runtime static constructor when an
instance is declared at file scope.
This commit is contained in:
Lioncash 2019-08-17 19:47:18 -04:00
parent dcd0ffcaec
commit a57409828c
1 changed files with 1 additions and 1 deletions
include/logvisor

View File

@ -207,7 +207,7 @@ class Module {
} }
public: public:
Module(const char* modName) : m_modName(modName) {} constexpr Module(const char* modName) : m_modName(modName) {}
/** /**
* @brief Route new log message to centralized ILogger * @brief Route new log message to centralized ILogger