always use std::string_view and remove is_convertible_to_sv

This commit is contained in:
gabime 2024-11-29 13:56:45 +02:00
parent 0641ddec58
commit 1d2138fdbe

View File

@ -133,10 +133,6 @@ using wmemory_buf_t = fmt::basic_memory_buffer<wchar_t, 250>;
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
#endif #endif
// Is convertable to string_view_t ?
template <typename T>
using is_convertible_to_sv = std::enable_if_t<std::is_convertible_v<T, string_view_t>>;
// Log level enum // Log level enum
enum class level { enum class level {
trace = SPDLOG_LEVEL_TRACE, trace = SPDLOG_LEVEL_TRACE,