- Removed Patch 0001-fix-update-to_string_view-function-for-fmt-11.1-3301.patch as it is included in 1.15.1.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=115
This commit is contained in:
parent
68567892bd
commit
5a87c30ab6
@ -1,35 +0,0 @@
|
||||
From 276ee5f5c0eb13626bd367b006ace5eae9526d8a Mon Sep 17 00:00:00 2001
|
||||
From: Rui Chen <rui@chenrui.dev>
|
||||
Date: Thu, 26 Dec 2024 02:13:57 -0500
|
||||
Subject: [PATCH] fix: update to_string_view function for fmt 11.1 (#3301)
|
||||
|
||||
Signed-off-by: Rui Chen <rui@chenrui.dev>
|
||||
---
|
||||
include/spdlog/common.h | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/include/spdlog/common.h b/include/spdlog/common.h
|
||||
index aca483c2..2d73f830 100644
|
||||
--- a/include/spdlog/common.h
|
||||
+++ b/include/spdlog/common.h
|
||||
@@ -365,10 +365,17 @@ SPDLOG_CONSTEXPR_FUNC spdlog::wstring_view_t to_string_view(spdlog::wstring_view
|
||||
#endif
|
||||
|
||||
#ifndef SPDLOG_USE_STD_FORMAT
|
||||
+#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>
|
||||
SPDLOG_CONSTEXPR_FUNC std::basic_string_view<T> to_string_view(
|
||||
--
|
||||
2.47.1
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 2 15:34:25 UTC 2025 - Bernd Ritter <comrad@opensuse.org>
|
||||
|
||||
- Removed Patch 0001-fix-update-to_string_view-function-for-fmt-11.1-3301.patch as it is included in 1.15.1.
|
||||
|
||||
Sat Feb 1 14:40:14 UTC 2025 - Bernd Ritter <comrad@opensuse.org>
|
||||
|
||||
- Updated spdlog to 1.15.1
|
||||
|
@ -27,7 +27,6 @@ Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/gabime/spdlog
|
||||
Source0: https://github.com/gabime/%{name}/archive/refs/tags/v%{version}.tar.gz
|
||||
Source99: baselibs.conf
|
||||
Patch1: 0001-fix-update-to_string_view-function-for-fmt-11.1-3301.patch
|
||||
BuildRequires: cmake >= 3.10
|
||||
%if 0%{?suse_version} > 1500
|
||||
BuildRequires: gcc-c++ >= 13
|
||||
|
Loading…
x
Reference in New Issue
Block a user