fix return type

This commit is contained in:
Algol83
2025-11-16 00:25:41 +03:00
parent 93d9601dda
commit fb90f3f3e3

View File

@@ -1748,7 +1748,7 @@ class KDTreeSingleIndexAdaptor
template <typename RESULTSET>
Size findWithinBox(RESULTSET& result, const BoundingBox& bbox) const
{
if (this->size(*this) == 0) return false;
if (this->size(*this) == 0) return 0;
if (!Base::root_node_)
throw std::runtime_error(
"[nanoflann] findWithinBox() called before building the "