Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
riteme committed Sep 10, 2021
1 parent bc9b63e commit 2b2ad0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dbms/src/Common/HashTable/TwoLevelStringHashTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class TwoLevelStringHashTable : private boost::noncopyable
/// NOTE Bad for hash tables with more than 2^32 cells.
static size_t getBucketFromHash(size_t hash_value) { return (hash_value >> (32 - BITS_FOR_BUCKET)) & MAX_BUCKET; }

public:
using key_type = typename Impl::key_type;
using mapped_type = typename Impl::mapped_type;
using value_type = typename Impl::value_type;
Expand All @@ -38,10 +37,10 @@ class TwoLevelStringHashTable : private boost::noncopyable

Impl impls[NUM_BUCKETS];

TwoLevelStringHashTable() {}
TwoLevelStringHashTable() = default;

template <typename Source>
TwoLevelStringHashTable(const Source & src)
explicit TwoLevelStringHashTable(const Source & src)
{
if (src.m0.hasZero())
impls[0].m0.setHasZero(*src.m0.zeroValue());
Expand Down

0 comments on commit 2b2ad0f

Please sign in to comment.