Skip to content

Commit

Permalink
fixed compilation with PTHASH_ENABLE_ALL_ENCODERS=On
Browse files Browse the repository at this point in the history
  • Loading branch information
jermp committed Dec 9, 2024
1 parent 249e791 commit a747347
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/utils/encoders.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ struct sdc_sequence {
visitor.visit(m_index);
}

template <typename Visitor>
void visit(Visitor& visitor) const {
visitor.visit(m_size);
visitor.visit(m_codewords);
visitor.visit(m_index);
}

private:
uint64_t m_size;
bits::bit_vector m_codewords;
Expand Down Expand Up @@ -329,6 +336,12 @@ struct sdc {
visitor.visit(m_dict);
}

template <typename Visitor>
void visit(Visitor& visitor) const {
visitor.visit(m_ranks);
visitor.visit(m_dict);
}

private:
sdc_sequence m_ranks;
bits::compact_vector m_dict;
Expand Down

0 comments on commit a747347

Please sign in to comment.