Simplify format string checks
This commit is contained in:
@@ -138,8 +138,8 @@ template <typename S, typename... Args>
|
||||
inline typename std::enable_if<internal::is_string<S>::value>::type print(
|
||||
std::basic_ostream<FMT_CHAR(S)>& os, const S& format_str,
|
||||
const Args&... args) {
|
||||
internal::checked_args<S, Args...> ca(format_str, args...);
|
||||
vprint(os, to_string_view(format_str), *ca);
|
||||
vprint(os, to_string_view(format_str),
|
||||
{internal::make_args_checked(format_str, args...)});
|
||||
}
|
||||
FMT_END_NAMESPACE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user