| 397 | template <typename Output, typename It, typename Sentinel, typename U = T, |
| 398 | FMT_ENABLE_IF(std::is_same<U, Char>::value)> |
| 399 | auto write_debug_string(Output& out, It it, Sentinel end) const -> Output { |
| 400 | auto buf = basic_memory_buffer<Char>(); |
| 401 | for (; it != end; ++it) buf.push_back(*it); |
| 402 | auto specs = format_specs(); |
| 403 | specs.set_type(presentation_type::debug); |
| 404 | return detail::write<Char>( |
| 405 | out, basic_string_view<Char>(buf.data(), buf.size()), specs); |
| 406 | } |
| 407 | |
| 408 | template <typename Output, typename It, typename Sentinel, typename U = T, |
| 409 | FMT_ENABLE_IF(!std::is_same<U, Char>::value)> |