Skip to content

Commit

Permalink
Fix compilation error with GCC 9, the implicit copy/move constructor/…
Browse files Browse the repository at this point in the history
…operator of the iterator were not generated.
  • Loading branch information
Tessil committed Feb 13, 2019
1 parent b3f274a commit e6f5714
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/tsl/array_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -827,12 +827,18 @@ class array_hash: private value_container<T>, private Hash, private GrowthPolicy
array_hash_iterator() noexcept: m_array_hash(nullptr) {
}

array_hash_iterator(const array_hash_iterator<false>& other) noexcept :
template<bool TIsConst = IsConst, typename std::enable_if<TIsConst>::type* = nullptr>
array_hash_iterator(const array_hash_iterator<!TIsConst>& other) noexcept :
m_buckets_iterator(other.m_buckets_iterator),
m_array_bucket_iterator(other.m_array_bucket_iterator),
m_array_hash(other.m_array_hash)
{
}

array_hash_iterator(const array_hash_iterator& other) = default;
array_hash_iterator(array_hash_iterator&& other) = default;
array_hash_iterator& operator=(const array_hash_iterator& other) = default;
array_hash_iterator& operator=(array_hash_iterator&& other) = default;

const CharT* key() const {
return m_array_bucket_iterator.key();
Expand Down

0 comments on commit e6f5714

Please sign in to comment.