Skip to content

Commit 568ae3d

Browse files
committed
Fix for serialization of index with removed points
1 parent 97598a6 commit 568ae3d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/cpp/flann/algorithms/nn_index.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,10 @@ class NNIndex : public IndexBase
271271
ar & last_id_;
272272
ar & ids_;
273273
ar & removed_;
274-
275274
if (removed_) {
276275
ar & removed_points_;
277276
}
278-
else {
279-
if (Archive::is_loading::value) {
280-
removed_points_.resize(size_);
281-
}
282-
}
277+
ar & removed_count_;
283278
}
284279

285280

0 commit comments

Comments
 (0)