|
|
@ -159,17 +159,10 @@ struct file_event_handlers {
|
|
|
|
|
|
|
|
|
|
|
|
namespace details {
|
|
|
|
namespace details {
|
|
|
|
|
|
|
|
|
|
|
|
// to_string_view
|
|
|
|
// // to_string_view
|
|
|
|
[[nodiscard]] constexpr spdlog::string_view_t to_string_view(const memory_buf_t &buf) noexcept {
|
|
|
|
// [[nodiscard]] constexpr spdlog::string_view_t to_string_view(const memory_buf_t &buf) noexcept {
|
|
|
|
return spdlog::string_view_t{buf.data(), buf.size()};
|
|
|
|
// return spdlog::string_view_t{buf.data(), buf.size()};
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
//[[nodiscard]] constexpr spdlog::string_view_t to_string_view(spdlog::string_view_t str) noexcept { return str; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename T, typename... Args>
|
|
|
|
|
|
|
|
[[nodiscard]] constexpr fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt) noexcept {
|
|
|
|
|
|
|
|
return fmt;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace details
|
|
|
|
} // namespace details
|
|
|
|
} // namespace spdlog
|
|
|
|
} // namespace spdlog
|
|
|
|