mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Correct example.
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user