Don't use uniform initialization for structs because VC++ 2013 is buggy

This commit is contained in:
Thomas Goyne 2013-12-11 19:16:16 -08:00
parent 038eb6e58b
commit 0a19a6d8f5

View file

@ -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() {