Commit e0f85c44 authored by Victor Zverovich's avatar Victor Zverovich

Correct an example.

parent da88577b
......@@ -74,8 +74,7 @@ performed when formatting is complete:
// Formats an error message and prints it to std::cerr.
fmt::ActiveFormatter<PrintError> ReportError(const char *format) {
fmt::ActiveFormatter<PrintError> af(format);
return af;
return fmt::ActiveFormatter<PrintError>(format);
}
ReportError("File not found: {0}") << path;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment