Decay argument types in call to do_check_format_string
This commit is contained in:
parent
9e2490be4c
commit
7c461dcac1
@ -3466,7 +3466,7 @@ template <typename Char, Char... CHARS> class udl_formatter {
|
||||
std::basic_string<Char> operator()(Args&&... args) const {
|
||||
FMT_CONSTEXPR_DECL Char s[] = {CHARS..., '\0'};
|
||||
FMT_CONSTEXPR_DECL bool invalid_format =
|
||||
do_check_format_string<Char, error_handler, Args...>(
|
||||
do_check_format_string<Char, error_handler, typename std::decay<Args>::type...>(
|
||||
basic_string_view<Char>(s, sizeof...(CHARS)));
|
||||
(void)invalid_format;
|
||||
return format(s, std::forward<Args>(args)...);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user