Decay argument types in call to do_check_format_string

This commit is contained in:
Mark Curtis 2019-08-30 13:05:19 +10:00 committed by GitHub
parent 9e2490be4c
commit 7c461dcac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)...);