Skip to content

Commit

Permalink
merge log change and fix allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan24680 committed Nov 20, 2024
1 parent 24e31c6 commit 8285355
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/engine/SpatialJoinAlgorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ std::array<bool, 2> SpatialJoinAlgorithms::isAPoleTouched(
// ____________________________________________________________________________
Result SpatialJoinAlgorithms::BoundingBoxAlgorithm() {
auto printWarning = []() {
AD_LOG(AD_WARN)
AD_LOG_WARN
<< "expected a point here, but no point is given. Skipping this point"
<< std::endl;
};

Check warning on line 438 in src/engine/SpatialJoinAlgorithms.cpp

View check run for this annotation

Codecov / codecov/patch

src/engine/SpatialJoinAlgorithms.cpp#L435-L438

Added lines #L435 - L438 were not covered by tests
Expand Down Expand Up @@ -479,7 +479,8 @@ Result SpatialJoinAlgorithms::BoundingBoxAlgorithm() {

// query the other rtree for every point using the following bounding box
std::vector<Box> bbox = computeBoundingBox(p);
std::vector<Value, ad_utility::AllocatorWithLimit<Value>> results;
std::vector<Value, ad_utility::AllocatorWithLimit<Value>> results{
qec_->getAllocator()};

std::ranges::for_each(bbox, [&](const Box& bbox) {
rtree.query(bgi::intersects(bbox), std::back_inserter(results));
Expand Down

0 comments on commit 8285355

Please sign in to comment.