Simplify format string checks
This commit is contained in:
@@ -45,9 +45,8 @@ template <typename S, typename... Args>
|
||||
inline std::basic_string<FMT_CHAR(S)> format(const std::locale& loc,
|
||||
const S& format_str,
|
||||
const Args&... args) {
|
||||
return internal::vformat(
|
||||
loc, to_string_view(format_str),
|
||||
*internal::checked_args<S, Args...>(format_str, args...));
|
||||
return internal::vformat(loc, to_string_view(format_str),
|
||||
{internal::make_args_checked(format_str, args...)});
|
||||
}
|
||||
|
||||
template <typename String, typename OutputIt, typename... Args>
|
||||
|
||||
Reference in New Issue
Block a user