Make value the second argument to format_value

This commit is contained in:
Victor Zverovich
2016-10-25 06:19:19 -07:00
parent edf98792a5
commit b656a1c133
6 changed files with 25 additions and 23 deletions
+4 -4
View File
@@ -64,8 +64,8 @@ namespace {
struct Test {};
template <typename Char>
void format_value(fmt::BasicWriter<Char> &w, fmt::basic_formatter<Char> &f,
const Char *, Test) {
void format_value(fmt::BasicWriter<Char> &w, Test,
fmt::basic_formatter<Char> &f, const Char *) {
w << "test";
}
@@ -582,8 +582,8 @@ struct CustomFormatter {
typedef char char_type;
};
void format_value(fmt::Writer &, CustomFormatter &, const char *&s,
const Test &) {
void format_value(fmt::Writer &, const Test &, CustomFormatter &,
const char *&s) {
s = "custom_format";
}