mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-01 14:41:43 +01:00
Replace operator<< with write function
This commit is contained in:
@@ -48,7 +48,7 @@ class CustomPrintfArgFormatter : public PrintfArgFormatter<char> {
|
||||
std::string custom_vformat(fmt::CStringRef format_str, fmt::format_args args) {
|
||||
fmt::MemoryWriter writer;
|
||||
// Pass custom argument formatter as a template arg to vformat.
|
||||
fmt::vformat<CustomArgFormatter>(writer, format_str, args);
|
||||
fmt::vwrite<CustomArgFormatter>(writer, format_str, args);
|
||||
return writer.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user