jlblancoc / nanoflann

nanoflann: a C++11 header-only library for Nearest Neighbor (NN) search with KD-trees
Other
2.26k stars 491 forks source link

Patch submitted by user to fix warnings #5

Closed jlblancoc closed 9 years ago

jlblancoc commented 10 years ago

TODO: Take a look at the patch:

"there is a couple of warning when compiling in 64 bits" ->

Index: nanoflann.hpp

--- nanoflann.hpp (revision 39165) +++ nanoflann.hpp (working copy) @@ -396,12 +396,12 @@ */ struct KDTreeSingleIndexAdaptorParams {

jlblancoc commented 9 years ago

We'll close this without replacing int -> size_t as proposed. The reason: In C/C++,

The int and unsigned int types are, by definition, the most efficient 
ones available on the platform that can hold at least a 16-bit range.