diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index ebb747c6..5298e0a7 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -14,11 +14,9 @@ namespace fmt_helper { inline spdlog::string_view_t to_string_view(const memory_buf_t &buf) SPDLOG_NOEXCEPT { - return spdlog::string_view_t(buf.data(), buf.size()); + return spdlog::string_view_t{buf.data(), buf.size()}; } - - inline void append_string_view(spdlog::string_view_t view, memory_buf_t &dest) { auto *buf_ptr = view.data();