From f8e0f679d2fad8b47f6300f25ab844fd49a1f7e5 Mon Sep 17 00:00:00 2001 From: Tessil Date: Mon, 13 Jun 2022 20:03:39 +0100 Subject: [PATCH] Add assertion to make sure that static_empty_bucket_ptr is empty --- include/tsl/robin_hash.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/tsl/robin_hash.h b/include/tsl/robin_hash.h index f9fb9e7..89c7c96 100644 --- a/include/tsl/robin_hash.h +++ b/include/tsl/robin_hash.h @@ -1589,6 +1589,7 @@ class robin_hash : private Hash, private KeyEqual, private GrowthPolicy { */ bucket_entry* static_empty_bucket_ptr() noexcept { static bucket_entry empty_bucket(true); + tsl_rh_assert(empty_bucket.empty()); return &empty_bucket; }