Make value the second argument to format_value
diff --git a/fmt/printf.h b/fmt/printf.h
index 1635396..cf9a851 100644
--- a/fmt/printf.h
+++ b/fmt/printf.h
@@ -266,7 +266,7 @@
this->writer());
const Char format_str[] = {'}', 0};
const Char *format = format_str;
- c.format(&formatter.writer(), &formatter, c.value, &format);
+ c.format(&formatter.writer(), c.value, &formatter, &format);
}
};
@@ -497,8 +497,8 @@
// Formats a value.
template <typename Char, typename T>
-void format_value(BasicWriter<Char> &w, PrintfFormatter<Char> &f,
- const Char *&, const T &value) {
+void format_value(BasicWriter<Char> &w, const T &value,
+ PrintfFormatter<Char> &f, const Char *&) {
internal::MemoryBuffer<Char, internal::INLINE_BUFFER_SIZE> buffer;
f.writer() << internal::format_value(buffer, value);
}