From 7b14c8f9d5ffd405786ad9d60fc8c06cf90cf3f8 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Fri, 22 Nov 2024 15:30:41 -0800 Subject: [PATCH] Add static_assert IteratorBase size <= 16 --- ConflictSet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index fbae0e0..a94e43d 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1944,6 +1944,8 @@ protected: // index into children array of particular leaf type int index; }; +// We want it to be cheap to copy +static_assert(sizeof(IteratorBase) <= 16); struct IteratorBase::ChildAndMaxVersion { IteratorBase child;