Refactor type processing

This commit is contained in:
Victor Zverovich
2014-09-24 07:48:45 -07:00
parent ab6e759291
commit ec1aea34e6
2 changed files with 72 additions and 138 deletions

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;
}