mirror of https://github.com/AxioDL/logvisor.git
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:
parent
dcd0ffcaec
commit
a57409828c
include/logvisor
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue