diff options
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 |