Add static_assert IteratorBase size <= 16

This commit is contained in:
2024-11-22 15:30:41 -08:00
parent 22632fc9f2
commit 7b14c8f9d5

View File

@@ -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;