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
+3 -2
View File
@@ -16,8 +16,9 @@
namespace fmt {
template <typename ArgFormatter>
void format_value(Writer &w, basic_formatter<char, ArgFormatter> &f,
const char *&format_str, const std::tm &tm) {
void format_value(Writer &w, const std::tm &tm,
basic_formatter<char, ArgFormatter> &f,
const char *&format_str) {
if (*format_str == ':')
++format_str;
const char *end = format_str;