flann-lib / flann

Fast Library for Approximate Nearest Neighbors
http://people.cs.ubc.ca/~mariusm/flann
Other
2.22k stars 647 forks source link

any.h bug line 81 #422

Open fluber opened 5 years ago

fluber commented 5 years ago

if ( x) delete ( reinterpret_cast<T*>(x)); x = NULL;

should

if ( x) { delete ( reinterpret_cast<T*>(x)); x = NULL; }

tkircher commented 3 years ago

This isn't a bug, the latter assignment is just redundant.