Umm, the nanoflann::KDTreeSingleIndexAdaptor class expects a function called kdtree_get_pt to be implemented by the DatasetAdaptor.