Skip to content

Commit

Permalink
Changed lambda defaults in rtree test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-W4 committed Oct 24, 2024
1 parent 7f1882f commit 22aa2b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/rtree_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ TEST_SUITE("rtree") {
bool found_correct = false;

rt_1D.search(min, max,
[min, max, i, &found_correct](
[=, &found_correct](
cista::rtree<size_t, dims_1D>::coord_t const& min_temp,
cista::rtree<size_t, dims_1D>::coord_t const& max_temp,
size_t data) {
Expand All @@ -625,7 +625,7 @@ TEST_SUITE("rtree") {
found_correct = false;

rt_1D.search(min, max,
[min, max, i, &found_correct](
[=, &found_correct](
cista::rtree<size_t, dims_1D>::coord_t const& min_temp,
cista::rtree<size_t, dims_1D>::coord_t const& max_temp,
size_t data) {
Expand Down Expand Up @@ -669,7 +669,7 @@ TEST_SUITE("rtree") {
bool found_correct = false;

rt_3D.search(min, max,
[min, max, i, &found_correct](
[=, &found_correct](
cista::rtree<size_t, dims_3D>::coord_t const& min_temp,
cista::rtree<size_t, dims_3D>::coord_t const& max_temp,
size_t data) {
Expand All @@ -691,7 +691,7 @@ TEST_SUITE("rtree") {
found_correct = false;

rt_3D.search(min, max,
[min, max, i, &found_correct](
[=, &found_correct](
cista::rtree<size_t, dims_3D>::coord_t const& min_temp,
cista::rtree<size_t, dims_3D>::coord_t const& max_temp,
size_t data) {
Expand Down Expand Up @@ -735,7 +735,7 @@ TEST_SUITE("rtree") {
bool found_correct = false;

rt_8D.search(min, max,
[min, max, i, &found_correct](
[=, &found_correct](
cista::rtree<size_t, dims_8D>::coord_t const& min_temp,
cista::rtree<size_t, dims_8D>::coord_t const& max_temp,
size_t data) {
Expand All @@ -757,7 +757,7 @@ TEST_SUITE("rtree") {
found_correct = false;

rt_8D.search(min, max,
[min, max, i, &found_correct](
[=, &found_correct](
cista::rtree<size_t, dims_8D>::coord_t const& min_temp,
cista::rtree<size_t, dims_8D>::coord_t const& max_temp,
size_t data) {
Expand Down

0 comments on commit 22aa2b5

Please sign in to comment.