Compare commits

...

2 Commits

Author SHA1 Message Date
aa9aa0a82c Merge pull request #1 from lioncash/cexpr
logvisor: Make Module constructor constexpr
2019-08-17 22:56:59 -07:00
Lioncash
a57409828c 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.
2019-08-17 19:47:20 -04:00

View File

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