Fix build.

This commit is contained in:
Victor Zverovich
2014-06-28 17:44:52 -07:00
parent 4d5b1e8a13
commit ddbd50de4a
2 changed files with 18 additions and 13 deletions

View File

@@ -179,11 +179,11 @@ const uint64_t fmt::internal::POWERS_OF_10_64[] = {
void fmt::internal::ReportUnknownType(char code, const char *type) {
if (std::isprint(static_cast<unsigned char>(code))) {
throw fmt::FormatError(fmt::str(
fmt::Format("unknown format code '{}' for {}") << code << type));
fmt::format("unknown format code '{}' for {}", code, type)));
}
throw fmt::FormatError(
fmt::str(fmt::Format("unknown format code '\\x{:02x}' for {}")
<< static_cast<unsigned>(code) << type));
fmt::str(fmt::format("unknown format code '\\x{:02x}' for {}",
static_cast<unsigned>(code), type)));
}
#ifdef _WIN32
@@ -569,11 +569,11 @@ void fmt::BasicWriter<Char>::FormatParser::CheckSign(
char sign = static_cast<char>(*s);
if (arg.type > Arg::LAST_NUMERIC_TYPE) {
report_error_(s,
fmt::Format("format specifier '{}' requires numeric argument") << sign);
fmt::c_str(fmt::format("format specifier '{}' requires numeric argument", sign)));
}
if (arg.type == Arg::UINT || arg.type == Arg::ULONG_LONG) {
report_error_(s,
fmt::Format("format specifier '{}' requires signed argument") << sign);
fmt::c_str(fmt::format("format specifier '{}' requires signed argument", sign)));
}
++s;
}