From da0e08d717d774c9f1b5fc3509e2f837d3b4701f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Feb 2023 00:08:57 +0100 Subject: wip still broken --- compat/LooseQuadtree-impl.h | 5 +++-- compat/LooseQuadtree.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'compat') diff --git a/compat/LooseQuadtree-impl.h b/compat/LooseQuadtree-impl.h index 08591072..26bddac1 100644 --- a/compat/LooseQuadtree-impl.h +++ b/compat/LooseQuadtree-impl.h @@ -1265,9 +1265,10 @@ void LooseQuadtree::Query::Next() { } -template +template struct TrivialBBExtractor { - static void ExtractBoundingBox(const BoundingBox *object, BoundingBox *bbox) + template + static void ExtractBoundingBox(const BoundingBox *object, BoundingBox *bbox) { bbox->left = object->left; bbox->top = object->top; diff --git a/compat/LooseQuadtree.h b/compat/LooseQuadtree.h index a8544346..507a92fa 100644 --- a/compat/LooseQuadtree.h +++ b/compat/LooseQuadtree.h @@ -22,7 +22,7 @@ * - This library is not thread-safe but multiple queries can be run at once * * Generic parameters are: - * - NumberT generic number type allows its floating- and fixed-point usage + * - Src generic number type allows its floating- and fixed-point usage * - ObjectT* only pointer is stored, no object copying is done, not an inclusive container * - BoundingBoxExtractorT allows using your own bounding box type/source, needs * BoundingBoxExtractor::ExtractBoundingBox(ObjectT* in, BoundingBox* out) implemented -- cgit v1.2.3