diff --git a/include/pisa/scorer/index_scorer.hpp b/include/pisa/scorer/index_scorer.hpp index a5adaa44..b88023e8 100644 --- a/include/pisa/scorer/index_scorer.hpp +++ b/include/pisa/scorer/index_scorer.hpp @@ -10,12 +10,18 @@ using TermScorer = std::function; /** Index scorer construct scorers for terms in the index. */ class IndexScorer { public: + IndexScorer() = default; + IndexScorer(const IndexScorer&) = default; + IndexScorer(IndexScorer&&) noexcept = default; + IndexScorer& operator=(const IndexScorer&) = delete; + IndexScorer& operator=(IndexScorer&&) noexcept = delete; + virtual ~IndexScorer() = default; virtual TermScorer term_scorer(std::uint64_t term_id) const = 0; }; /** Index scorer using WAND metadata for scoring. */ template -struct WandIndexScorer: IndexScorer { +struct WandIndexScorer: public IndexScorer { protected: const Wand& m_wdata;