@@ -188,8 +188,8 @@ template <typename OutputIt, typename S, typename... T,
188
188
typename Char = detail::format_string_char_t <S>,
189
189
FMT_ENABLE_IF (detail::is_output_iterator<OutputIt, Char>::value&&
190
190
detail::is_exotic_char<Char>::value)>
191
- inline auto format_to(OutputIt out, const S& fmt , T&&... args) -> OutputIt {
192
- return vformat_to (out, detail::to_string_view (fmt ),
191
+ inline auto format_to(OutputIt out, const S& format_str , T&&... args) -> OutputIt {
192
+ return vformat_to (out, fmt::basic_string_view<Char>(format_str ),
193
193
fmt::make_format_args<buffered_context<Char>>(args...));
194
194
}
195
195
@@ -215,7 +215,7 @@ template <typename OutputIt, typename Locale, typename S, typename... T,
215
215
inline auto format_to (OutputIt out, const Locale& loc, const S& format_str,
216
216
T&&... args) ->
217
217
typename std::enable_if<enable, OutputIt>::type {
218
- return vformat_to (out, loc, detail::to_string_view (format_str),
218
+ return vformat_to (out, loc, fmt::basic_string_view<Char> (format_str),
219
219
fmt::make_format_args<buffered_context<Char>>(args...));
220
220
}
221
221
0 commit comments