diff --git a/test/rtree_test.cc b/test/rtree_test.cc index cdcb8bdf..477a34a2 100644 --- a/test/rtree_test.cc +++ b/test/rtree_test.cc @@ -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::coord_t const& min_temp, cista::rtree::coord_t const& max_temp, size_t data) { @@ -625,7 +625,7 @@ TEST_SUITE("rtree") { found_correct = false; rt_1D.search(min, max, - [min, max, i, &found_correct]( + [=, &found_correct]( cista::rtree::coord_t const& min_temp, cista::rtree::coord_t const& max_temp, size_t data) { @@ -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::coord_t const& min_temp, cista::rtree::coord_t const& max_temp, size_t data) { @@ -691,7 +691,7 @@ TEST_SUITE("rtree") { found_correct = false; rt_3D.search(min, max, - [min, max, i, &found_correct]( + [=, &found_correct]( cista::rtree::coord_t const& min_temp, cista::rtree::coord_t const& max_temp, size_t data) { @@ -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::coord_t const& min_temp, cista::rtree::coord_t const& max_temp, size_t data) { @@ -757,7 +757,7 @@ TEST_SUITE("rtree") { found_correct = false; rt_8D.search(min, max, - [min, max, i, &found_correct]( + [=, &found_correct]( cista::rtree::coord_t const& min_temp, cista::rtree::coord_t const& max_temp, size_t data) {