Skip to content

Commit

Permalink
Add virtual destructor to PostingAccumulator (#586) (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrz authored Oct 13, 2024
1 parent bb2b3df commit 64320ef
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 64320ef

Please sign in to comment.