summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2025-02-20 09:02:07 +0100
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2025-02-20 09:02:07 +0100
commit70a81b5afa2df723f18ef5f605f9bd7712b1e025 (patch)
treed64b627712ae052fd1d4f0309ff7ee4393473894
parentea3286f7e3de265b57ba374ef8c8a98f4293702d (diff)
fix build issue on monero
-rw-r--r--patches/monero/0015-remove-trivially_copyable-assert.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/monero/0015-remove-trivially_copyable-assert.patch b/patches/monero/0015-remove-trivially_copyable-assert.patch
new file mode 100644
index 0000000..d78268f
--- /dev/null
+++ b/patches/monero/0015-remove-trivially_copyable-assert.patch
@@ -0,0 +1,24 @@
+From 71cf45cfbd571ec58e8b2a1d408ff74804bf7e1d Mon Sep 17 00:00:00 2001
+From: Czarek Nakamoto <cyjan@mrcyjanek.net>
+Date: Thu, 20 Feb 2025 08:36:28 +0100
+Subject: [PATCH] remove trivially_copyable assert
+
+---
+ contrib/epee/include/span.h | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/contrib/epee/include/span.h b/contrib/epee/include/span.h
+index 01dc387d6..2ad733a2f 100644
+--- a/contrib/epee/include/span.h
++++ b/contrib/epee/include/span.h
+@@ -162,7 +162,6 @@ namespace epee
+ {
+ static_assert(!std::is_empty<T>(), "empty types will not work -> sizeof == 1");
+ static_assert(std::is_standard_layout<T>(), "type must have standard layout");
+- static_assert(std::is_trivially_copyable<T>(), "type must be trivially copyable");
+ static_assert(alignof(T) == 1, "type may have padding");
+ return {reinterpret_cast<const std::uint8_t*>(std::addressof(src)), sizeof(T)};
+ }
+--
+2.48.1
+