From 9c99f6bf55b67866c4888c213a6e5871c3e80a68 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 3 Apr 2024 07:50:56 -0600 Subject: [PATCH] IOSS: NVidia seems to need this --- packages/seacas/libraries/ioss/src/hopscotch_hash.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/seacas/libraries/ioss/src/hopscotch_hash.h b/packages/seacas/libraries/ioss/src/hopscotch_hash.h index d1318fca77..4fd92f1ab7 100644 --- a/packages/seacas/libraries/ioss/src/hopscotch_hash.h +++ b/packages/seacas/libraries/ioss/src/hopscotch_hash.h @@ -1789,12 +1789,6 @@ namespace tsl { private: static const std::size_t MAX_PROBES_FOR_EMPTY_BUCKET = 12 * NeighborhoodSize; static constexpr float MIN_LOAD_FACTOR_FOR_REHASH = 0.1f; - template struct is_type_same - { - static_assert(std::is_unsigned::value, "T must be an unsigned type"); - static_assert(std::is_unsigned::value, "U must be an unsigned type"); - static const bool value = sizeof(T) == sizeof(U); - }; /** * We can only use the hash on rehash if the size of the hash type is the same @@ -1804,7 +1798,7 @@ namespace tsl { */ template < class T = size_type, - typename std::enable_if::value>::type * = nullptr> + typename std::enable_if::value>::type * = nullptr> static bool USE_STORED_HASH_ON_REHASH(size_type /*bucket_count*/) { return StoreHash; @@ -1812,7 +1806,7 @@ namespace tsl { template < class T = size_type, - typename std::enable_if::value>::type * = nullptr> + typename std::enable_if::value>::type * = nullptr> static bool USE_STORED_HASH_ON_REHASH(size_type bucket_count) { (void)bucket_count;