Skip to content

Commit d0cfa73

Browse files
authored
Merge pull request #22 from JosiahWI/fix/rtree-function-template-usage
Fix syntax for dependent template arg
2 parents e8e9d2e + c51ece3 commit d0cfa73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RTree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ namespace spatial {
14121412

14131413
if (node->isLeaf()) {
14141414
for (count_type index = 0; index < node->count; ++index) {
1415-
if (predicate(node->values[index]) && node->bboxes[index].intersectsRay<RealType>(rayOrigin, rayDirection)) {
1415+
if (predicate(node->values[index]) && node->bboxes[index].template intersectsRay<RealType>(rayOrigin, rayDirection)) {
14161416
*it = node->values[index];
14171417
++it;
14181418
++foundCount;
@@ -1423,7 +1423,7 @@ namespace spatial {
14231423
for (count_type index = 0; index < node->count; ++index) {
14241424
const bbox_type& nodeBBox = node->bboxes[index];
14251425

1426-
if (nodeBBox.intersectsRay<RealType>(rayOrigin, rayDirection)) {
1426+
if (nodeBBox.template intersectsRay<RealType>(rayOrigin, rayDirection)) {
14271427
rayQueryRec(node->children[index], rayOrigin, rayDirection, predicate, foundCount, it);
14281428
}
14291429
}

0 commit comments

Comments
 (0)