From 90325d0970b031be8872c60168aeb4cb09928815 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 5 Feb 2022 10:41:18 -0800 Subject: [PATCH] Fix stored type detection --- include/fmt/args.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/fmt/args.h b/include/fmt/args.h index 9a8e4ed2cebb..a3966d140719 100644 --- a/include/fmt/args.h +++ b/include/fmt/args.h @@ -95,10 +95,10 @@ class dynamic_format_arg_store }; template - using stored_type = conditional_t::value && - !has_formatter::value && - !detail::is_reference_wrapper::value, - std::basic_string, T>; + using stored_type = conditional_t< + std::is_convertible>::value && + !detail::is_reference_wrapper::value, + std::basic_string, T>; // Storage of basic_format_arg must be contiguous. std::vector> data_;