Skip to content

Commit 7f419ea

Browse files
committed
Remove constexpr for functor in test.
1 parent e4705fd commit 7f419ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/searchKnnWithFilter_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class CustomFilterFunctor: public hnswlib::FilterFunctor {
148148
public:
149149
explicit CustomFilterFunctor(const std::unordered_set<unsigned int>& values) : allowed_values(values) {}
150150

151-
constexpr bool operator()(unsigned int id) const {
151+
bool operator()(unsigned int id) {
152152
return allowed_values.count(id) != 0;
153153
}
154154
};

0 commit comments

Comments
 (0)