|
|
|
@ -40,13 +40,13 @@ inline spdlog::wstring_view_t to_string_view(spdlog::wstring_view_t str) SPDLOG_
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef SPDLOG_USE_STD_FORMAT
|
|
|
|
|
template<typename T, typename Args...>
|
|
|
|
|
template<typename T, typename... Args>
|
|
|
|
|
inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt)
|
|
|
|
|
{
|
|
|
|
|
return fmt;
|
|
|
|
|
}
|
|
|
|
|
#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(std::basic_format_string<T, Args...> fmt) SPDLOG_NOEXCEPT
|
|
|
|
|
{
|
|
|
|
|
return fmt.get();
|
|
|
|
|