Skip to content

Commit

Permalink
Add virtual destructor to PostingAccumulator (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrz committed Oct 12, 2024
1 parent bb2b3df commit 06fd7d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/pisa/block_inverted_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ namespace index::block {
BlockCodecPtr block_codec, std::size_t num_docs, std::string output_filename
);

virtual ~PostingAccumulator() = default;

virtual void accumulate_posting_list(
std::size_t n, std::uint32_t const* docs, std::uint32_t const* freqs
) = 0;
Expand Down

0 comments on commit 06fd7d3

Please sign in to comment.