diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-10-23 15:24:38 +0200 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-10-23 15:24:38 +0200 |
| commit | 019d5d0b70b688822ca1166236b8e9beba912ef7 (patch) | |
| tree | 08dc01dd50e4dee5b81b2e78fdf8b520bb9f3c53 /patches/wownero/0002-fix-is_trivially_copyable.patch | |
| parent | 4b788f5c571b37a8cd513c9a127be6c88203aa52 (diff) | |
fix __clear_cache bug on wownero
Diffstat (limited to 'patches/wownero/0002-fix-is_trivially_copyable.patch')
| -rw-r--r-- | patches/wownero/0002-fix-is_trivially_copyable.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/patches/wownero/0002-fix-is_trivially_copyable.patch b/patches/wownero/0002-fix-is_trivially_copyable.patch deleted file mode 100644 index 8cfb64b..0000000 --- a/patches/wownero/0002-fix-is_trivially_copyable.patch +++ /dev/null @@ -1,32 +0,0 @@ -From bce1cdd45be4132599488ea301dd7922f10ed87f Mon Sep 17 00:00:00 2001 -From: cyan <cyjan@mrcyjanek.net> -Date: Tue, 22 Oct 2024 10:23:18 +0000 -Subject: [PATCH 02/13] fix is_trivially_copyable - ---- - contrib/epee/include/span.h | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/contrib/epee/include/span.h b/contrib/epee/include/span.h -index 01dc387d6..5e3af4d11 100644 ---- a/contrib/epee/include/span.h -+++ b/contrib/epee/include/span.h -@@ -151,7 +151,6 @@ namespace epee - using value_type = typename T::value_type; - static_assert(!std::is_empty<value_type>(), "empty value types will not work -> sizeof == 1"); - static_assert(std::is_standard_layout<value_type>(), "value type must have standard layout"); -- static_assert(std::is_trivially_copyable<value_type>(), "value type must be trivially copyable"); - static_assert(alignof(value_type) == 1, "value type may have padding"); - return {reinterpret_cast<std::uint8_t*>(src.data()), src.size() * sizeof(value_type)}; - } -@@ -162,7 +161,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.43.0 - |
