Don't use uniform initialization for structs because VC++ 2013 is buggy
This commit is contained in:
parent
038eb6e58b
commit
0a19a6d8f5
1 changed files with 6 additions and 1 deletions
|
@ -83,8 +83,13 @@ decltype(LogSink::messages) LogSink::GetMessages() const {
|
|||
|
||||
Message::Message(const char *section, Severity severity, const char *file, const char *func, int line)
|
||||
: msg(buffer, sizeof buffer)
|
||||
, sm{section, severity, file, func, line, util::time_log(), ""}
|
||||
{
|
||||
sm.section = section;
|
||||
sm.severity = severity;
|
||||
sm.file = file;
|
||||
sm.func = func;
|
||||
sm.line = line;
|
||||
sm.tv = util::time_log();
|
||||
}
|
||||
|
||||
Message::~Message() {
|
||||
|
|
Loading…
Reference in a new issue