Skip to content

Commit

Permalink
Fix compilation issue with older GCC verions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessil committed Sep 14, 2024
1 parent 5ca49e3 commit add641d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tsl/hopscotch_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class hopscotch_hash : private Hash, private KeyEqual, private GrowthPolicy {
template <
class OC = OverflowContainer,
typename std::enable_if<!has_key_compare<OC>::value>::type* = nullptr>
hopscotch_hash() noexcept(DEFAULT_INIT_BUCKETS_SIZE == 0 &&
hopscotch_hash() noexcept(hopscotch_hash::DEFAULT_INIT_BUCKETS_SIZE == 0 &&
std::is_nothrow_default_constructible<Hash>::value &&
std::is_nothrow_default_constructible<KeyEqual>::value &&
std::is_nothrow_default_constructible<Allocator>::value &&
Expand Down Expand Up @@ -633,7 +633,7 @@ class hopscotch_hash : private Hash, private KeyEqual, private GrowthPolicy {
template <
class OC = OverflowContainer,
typename std::enable_if<has_key_compare<OC>::value>::type* = nullptr>
hopscotch_hash() noexcept(DEFAULT_INIT_BUCKETS_SIZE == 0 &&
hopscotch_hash() noexcept(hopscotch_hash::DEFAULT_INIT_BUCKETS_SIZE == 0 &&
std::is_nothrow_default_constructible<Hash>::value &&
std::is_nothrow_default_constructible<KeyEqual>::value &&
std::is_nothrow_default_constructible<Allocator>::value &&
Expand Down

0 comments on commit add641d

Please sign in to comment.