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/LooseQuadtree-impl.h | |
parent | aba8a1a31d912d1a77b827fbd1c55dc3134f6327 (diff) |
wip still broken
Diffstat (limited to 'compat/LooseQuadtree-impl.h')
-rw-r--r-- | compat/LooseQuadtree-impl.h | 5 |
1 files changed, 3 insertions, 2 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; |