summaryrefslogtreecommitdiff
path: root/patches/zano/0011-wrap-pfr-in-DISABLE_PFR_SERIALIZATION_SELFCHECK.patch
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2026-06-30 09:54:02 +0200
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2026-06-30 09:54:11 +0200
commit8054ea2dd3b953803c758f7e71854ce25e07b265 (patch)
tree36bfd150bff6de81aa2f71e707d047e0b8573591 /patches/zano/0011-wrap-pfr-in-DISABLE_PFR_SERIALIZATION_SELFCHECK.patch
parent5952bef2ec01b0b7e57c11613cbdc081dcd727c5 (diff)
feat: zano hf6cyjan-zano-hf6
Diffstat (limited to 'patches/zano/0011-wrap-pfr-in-DISABLE_PFR_SERIALIZATION_SELFCHECK.patch')
-rw-r--r--patches/zano/0011-wrap-pfr-in-DISABLE_PFR_SERIALIZATION_SELFCHECK.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/zano/0011-wrap-pfr-in-DISABLE_PFR_SERIALIZATION_SELFCHECK.patch b/patches/zano/0011-wrap-pfr-in-DISABLE_PFR_SERIALIZATION_SELFCHECK.patch
new file mode 100644
index 0000000..c221c22
--- /dev/null
+++ b/patches/zano/0011-wrap-pfr-in-DISABLE_PFR_SERIALIZATION_SELFCHECK.patch
@@ -0,0 +1,32 @@
+From 8c8a732fa170aaba26570ca4927b24f11748ac23 Mon Sep 17 00:00:00 2001
+From: Czarek Nakamoto <cyjan@mrcyjanek.net>
+Date: Tue, 30 Jun 2026 09:46:18 +0200
+Subject: [PATCH 11/11] wrap pfr in DISABLE_PFR_SERIALIZATION_SELFCHECK
+
+---
+ src/common/boost_serialization_maps.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/common/boost_serialization_maps.h b/src/common/boost_serialization_maps.h
+index 988e42d3..9773a4ba 100644
+--- a/src/common/boost_serialization_maps.h
++++ b/src/common/boost_serialization_maps.h
+@@ -51,6 +51,7 @@ template<size_t A, size_t B> struct TAssertEquality {
+ be accompanied by a thorough review of the serialization map to ensure no fields are omitted.
+ **********************************************************************************************************************************/
+
++#ifndef DISABLE_PFR_SERIALIZATION_SELFCHECK
+ template <std::size_t Expected, std::size_t Actual>
+ struct if_you_see_this_check_END_BOOST_SERIALIZATION_TOTAL_FIELDS_macro;
+
+@@ -59,6 +60,7 @@ using validate_fields_t = std::conditional_t<(boost::pfr::tuple_size_v<T> == Exp
+
+ template<std::size_t expected, std::size_t actual>
+ constexpr bool static_check_num_eq() { static_assert(expected == actual, "numbers mismatched -- see static_check_num_eq<expected, actual> in the instantiation below"); return expected == actual; }
++#endif
+
+
+ #ifndef DISABLE_PFR_SERIALIZATION_SELFCHECK
+--
+2.54.0 (Apple Git-156)
+