Skip to content

Commit 1925428

Browse files
authored
add virtual destructor to BaseFilterFunctor (#460)
1 parent cd844b5 commit 1925428

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hnswlib/hnswlib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ typedef size_t labeltype;
119119
class BaseFilterFunctor {
120120
public:
121121
virtual bool operator()(hnswlib::labeltype id) { return true; }
122+
virtual ~BaseFilterFunctor() {};
122123
};
123124

124125
template <typename T>

0 commit comments

Comments
 (0)