Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Removed inline for function feq"
Browse files Browse the repository at this point in the history
This reverts commit 05d2608.
Alex-W4 committed Oct 30, 2024
1 parent 05d2608 commit e7bd59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cista/containers/rtree.h
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ struct rtree {
* @param b Second number
* @return True if equal
*/
bool feq(NumType a, NumType b) { return !(a < b || a > b); }
inline bool feq(NumType a, NumType b) { return !(a < b || a > b); }

/**
* The area of the bounding rectangle of this rect and other_rect
@@ -689,7 +689,7 @@ struct rtree {
*/
template <typename Fn>
void delete_0(coord_t const& min, coord_t const& max, Fn&& fn) {
rtree<DataType, Dims, NumType, MaxItems, SizeType, VectorType>::rect input_rect = {min, max};
rect input_rect = {min, max};

if (root_ == node_idx_t::invalid()) {
return;

0 comments on commit e7bd59b

Please sign in to comment.