diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-25 00:08:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-25 00:08:57 +0100 |
commit | da0e08d717d774c9f1b5fc3509e2f837d3b4701f (patch) | |
tree | 815c97f7d1ff1345f0acd39d3929a68f1fefbd3c /compat | |
parent | aba8a1a31d912d1a77b827fbd1c55dc3134f6327 (diff) |
wip still broken
Diffstat (limited to 'compat')
-rw-r--r-- | compat/LooseQuadtree-impl.h | 5 | ||||
-rw-r--r-- | compat/LooseQuadtree.h | 2 |
2 files changed, 4 insertions, 3 deletions
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<NumberT, ObjectT, BoundingBoxExtractorT>::Query::Next() { } -template <typename NumberT> +template <typename Src> struct TrivialBBExtractor { - static void ExtractBoundingBox(const BoundingBox<NumberT> *object, BoundingBox<NumberT> *bbox) + template<typename Dst = Src> + static void ExtractBoundingBox(const BoundingBox<Src> *object, BoundingBox<Dst> *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<Number>* out) implemented |