File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -173,12 +173,19 @@ using format_string_t = fmt::format_string<Args...>;
173
173
template <class T >
174
174
using remove_cvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
175
175
176
+ template <typename Char>
177
+ #if FMT_VERSION >= 90101
178
+ using fmt_runtime_string = fmt::runtime_format_string<Char>;
179
+ #else
180
+ using fmt_runtime_string = fmt::basic_runtime<Char>;
181
+ #endif
182
+
176
183
// clang doesn't like SFINAE disabled constructor in std::is_convertible<> so have to repeat the condition from basic_format_string here,
177
184
// in addition, fmt::basic_runtime<Char> is only convertible to basic_format_string<Char> but not basic_string_view<Char>
178
185
template <class T , class Char = char >
179
186
struct is_convertible_to_basic_format_string
180
187
: std::integral_constant<bool ,
181
- std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t <T>, fmt::basic_runtime <Char>>::value>
188
+ std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t <T>, fmt_runtime_string <Char>>::value>
182
189
{};
183
190
184
191
# if defined(SPDLOG_WCHAR_FILENAMES) || defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)
You can’t perform that action at this time.
0 commit comments