From 716fa00789b60ff52473eabc3ac201eb61744392 Mon Sep 17 00:00:00 2001 From: Evan Brown Date: Mon, 13 Nov 2023 13:02:58 -0800 Subject: Partial roll forward of reentrant validation with the validation itself disabled. This will make it easier to roll back and forwards in the future (if needed) without causing merge conflicts in unrelated code. PiperOrigin-RevId: 582059046 Change-Id: I66dc6527e7a0b351367b7a391c2d653fe793143f --- absl/container/internal/raw_hash_set_test.cc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'absl/container/internal/raw_hash_set_test.cc') diff --git a/absl/container/internal/raw_hash_set_test.cc b/absl/container/internal/raw_hash_set_test.cc index 1ca4464a..8577272e 100644 --- a/absl/container/internal/raw_hash_set_test.cc +++ b/absl/container/internal/raw_hash_set_test.cc @@ -409,19 +409,15 @@ struct StringTable using Base::Base; }; -struct IntTable - : raw_hash_set, - std::equal_to, std::allocator> { - using Base = typename IntTable::raw_hash_set; +template +struct ValueTable : raw_hash_set, hash_default_hash, + std::equal_to, std::allocator> { + using Base = typename ValueTable::raw_hash_set; using Base::Base; }; -struct Uint8Table - : raw_hash_set, - std::equal_to, std::allocator> { - using Base = typename Uint8Table::raw_hash_set; - using Base::Base; -}; +using IntTable = ValueTable; +using Uint8Table = ValueTable; template struct CustomAlloc : std::allocator { -- cgit v1.2.3