mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Correct example.
This commit is contained in:
parent
ba65bc1ec6
commit
5fe01fd096
@ -103,7 +103,7 @@ which take arbitrary arguments:
|
|||||||
void ReportError(const char *format_str, const fmt::ArgList &args) {
|
void ReportError(const char *format_str, const fmt::ArgList &args) {
|
||||||
std::cerr << "Error: " << fmt::format(format_str, args) << std::endl;
|
std::cerr << "Error: " << fmt::format(format_str, args) << std::endl;
|
||||||
}
|
}
|
||||||
FMT_VARIADIC(void, ReportError)
|
FMT_VARIADIC(void, ReportError, const char *)
|
||||||
|
|
||||||
ReportError("File not found: {}", path);
|
ReportError("File not found: {}", path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user