Open
Description
The following static assertion triggers even when it shouldn't because it is evaluated even when the alternate bucket selection method isn't TABLE_BASED_OFFSET
, causing Morton1_8 to fail to compile (it uses FUNCTION_BASED_OFFSET
, and the assertion shouldn't trigger).
morton_filter/compressed_cuckoo_filter.h
Lines 397 to 398 in cb7b788
context:
morton_filter/compressed_cuckoo_filter.h
Lines 391 to 412 in cb7b788
Since _alternate_bucket_selection_method
is known at compile time, the inverse of the case
taken should be added to the assertion, something like this:
static_assert(offsets[0] > _buckets_per_block ||
_alternate_bucket_selection_method != AlternateBucketSelectionMethodEnum::TABLE_BASED_OFFSET,
"Cannot use TABLE_BASED_OFFSET with so many buckets per block");
Metadata
Metadata
Assignees
Labels
No labels