summaryrefslogtreecommitdiffhomepage
path: root/compat/LooseQuadtree-impl.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-25 00:08:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-25 00:08:57 +0100
commitda0e08d717d774c9f1b5fc3509e2f837d3b4701f (patch)
tree815c97f7d1ff1345f0acd39d3929a68f1fefbd3c /compat/LooseQuadtree-impl.h
parentaba8a1a31d912d1a77b827fbd1c55dc3134f6327 (diff)
wip still broken
Diffstat (limited to 'compat/LooseQuadtree-impl.h')
-rw-r--r--compat/LooseQuadtree-impl.h5
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;