Codechange: Use functor for Kdtree's XYFunc. (#13074)

Kdtree uses a function pointer and incorrectly calls it a functor. The function pointer needs to be passed on instantiaton.

Instead, use an actual functor. This simplifies instantiation.
This commit is contained in:
Peter Nelson
2024-11-19 20:29:56 +00:00
committed by GitHub
parent 369ea29e1e
commit fc8685d618
8 changed files with 40 additions and 28 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ StationPool _station_pool("Station");
INSTANTIATE_POOL_METHODS(Station)
StationKdtree _station_kdtree(Kdtree_StationXYFunc);
StationKdtree _station_kdtree{};
void RebuildStationKdtree()
{