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
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue