diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-03-07 20:29:49 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-03-07 22:39:09 -0600 |
commit | 9903e6779b70fc03aae70a37b9cf053f4f355b91 (patch) | |
tree | 16ee7fbb98471ff6b4f3ea97e9a9389ae33282ea /core/math/bvh_tree.h | |
parent | aef11a14274f6f9e74ad91ead1d7c07ea1dd7f5f (diff) | |
download | redot-engine-9903e6779b70fc03aae70a37b9cf053f4f355b91.tar.gz |
Enforce template syntax `typename` over `class`
Diffstat (limited to 'core/math/bvh_tree.h')
-rw-r--r-- | core/math/bvh_tree.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/bvh_tree.h b/core/math/bvh_tree.h index ce296668db..0faa50555f 100644 --- a/core/math/bvh_tree.h +++ b/core/math/bvh_tree.h @@ -106,7 +106,7 @@ struct BVHHandle { }; // helper class to make iterative versions of recursive functions -template <class T> +template <typename T> class BVH_IterativeInfo { public: enum { @@ -152,7 +152,7 @@ public: } }; -template <class T> +template <typename T> class BVH_DummyPairTestFunction { public: static bool user_collision_check(T *p_a, T *p_b) { @@ -161,7 +161,7 @@ public: } }; -template <class T> +template <typename T> class BVH_DummyCullTestFunction { public: static bool user_cull_check(T *p_a, T *p_b) { @@ -170,7 +170,7 @@ public: } }; -template <class T, int NUM_TREES, int MAX_CHILDREN, int MAX_ITEMS, class USER_PAIR_TEST_FUNCTION = BVH_DummyPairTestFunction<T>, class USER_CULL_TEST_FUNCTION = BVH_DummyCullTestFunction<T>, bool USE_PAIRS = false, class BOUNDS = AABB, class POINT = Vector3> +template <typename T, int NUM_TREES, int MAX_CHILDREN, int MAX_ITEMS, typename USER_PAIR_TEST_FUNCTION = BVH_DummyPairTestFunction<T>, typename USER_CULL_TEST_FUNCTION = BVH_DummyCullTestFunction<T>, bool USE_PAIRS = false, typename BOUNDS = AABB, typename POINT = Vector3> class BVH_Tree { friend class BVH; |