Skip to content

Commit

Permalink
add virtual destructor to BaseFilterFunctor (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku authored May 13, 2023
1 parent cd844b5 commit 1925428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hnswlib/hnswlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ typedef size_t labeltype;
class BaseFilterFunctor {
public:
virtual bool operator()(hnswlib::labeltype id) { return true; }
virtual ~BaseFilterFunctor() {};
};

template <typename T>
Expand Down

0 comments on commit 1925428

Please sign in to comment.