mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-29 03:53:54 +00:00
fix: remove unused to_string_view overload in fmt >= 11.1 (#3314)
This commit is contained in:
parent
7f8060d5b2
commit
96a8f6250c
@ -364,19 +364,7 @@ SPDLOG_CONSTEXPR_FUNC spdlog::wstring_view_t to_string_view(spdlog::wstring_view
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SPDLOG_USE_STD_FORMAT
|
#if defined(SPDLOG_USE_STD_FORMAT) && __cpp_lib_format >= 202207L
|
||||||
#if FMT_VERSION >= 110100
|
|
||||||
template <typename T, typename... Args>
|
|
||||||
inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_arg<T> fmt) {
|
|
||||||
return fmt;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
template <typename T, typename... Args>
|
|
||||||
inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt) {
|
|
||||||
return fmt;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#elif __cpp_lib_format >= 202207L
|
|
||||||
template <typename T, typename... Args>
|
template <typename T, typename... Args>
|
||||||
SPDLOG_CONSTEXPR_FUNC std::basic_string_view<T> to_string_view(
|
SPDLOG_CONSTEXPR_FUNC std::basic_string_view<T> to_string_view(
|
||||||
std::basic_format_string<T, Args...> fmt) SPDLOG_NOEXCEPT {
|
std::basic_format_string<T, Args...> fmt) SPDLOG_NOEXCEPT {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user