Refactor type processing

This commit is contained in:
Victor Zverovich committed 2014-09-24 07:48:45 -07:00
1 parent ab6e759291
commit ec1aea34e6
2 files changed
+72 -138

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ Arg make_arg(const T &value) {
Arg arg = Arg();
Value &arg_value = arg;
arg_value = fmt::internal::MakeArg<Char>(value);
arg.type = static_cast<Arg::Type>(fmt::internal::ArgType<1, T>::TYPE);
arg.type = static_cast<Arg::Type>(fmt::internal::MakeArg<Char>::type(value));
return arg;
}