diff --git a/tests/raw_hash_set_test.cc b/tests/raw_hash_set_test.cc index feb9709..91946a4 100644 --- a/tests/raw_hash_set_test.cc +++ b/tests/raw_hash_set_test.cc @@ -389,40 +389,6 @@ struct BadTable : raw_hash_set, using Base::Base; }; -#if PHMAP_HAVE_STD_STRING_VIEW -TEST(Table, EmptyFunctorOptimization) { - static_assert(std::is_empty>::value, ""); - static_assert(std::is_empty>::value, ""); - - struct MockTable { - void* ctrl; - void* slots; - size_t size; - size_t capacity; - size_t growth_left; - void* infoz; - }; - struct StatelessHash { - size_t operator()(std::string_view) const { return 0; } - }; - struct StatefulHash : StatelessHash { - size_t dummy; - }; - - EXPECT_EQ( - sizeof(MockTable), - sizeof( - raw_hash_set, std::allocator>)); - - EXPECT_EQ( - sizeof(MockTable) + sizeof(StatefulHash), - sizeof( - raw_hash_set, std::allocator>)); -} -#endif - TEST(Table, Empty) { IntTable t; EXPECT_EQ(0, t.size());