From ed6d30606b7d62e2d81124f8bc028100923c0949 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 13 May 2025 07:47:01 +0200 Subject: [PATCH] avoid capturing structured binding clang does not like it --- tests/test_partitionCells.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_partitionCells.cpp b/tests/test_partitionCells.cpp index 1061f52e37..3dfb6ec8ba 100644 --- a/tests/test_partitionCells.cpp +++ b/tests/test_partitionCells.cpp @@ -447,8 +447,8 @@ BOOST_AUTO_TEST_CASE(PartitionCellsComplexWellNetworkTest) BOOST_CHECK_EQUAL(part.size(), 100); // 5x5x4 grid // Helper to check if two cells are in the same partition - auto inSamePartition = [&part](int idx1, int idx2) { - return part[idx1] == part[idx2]; + auto inSamePartition = [&ppart = part](int idx1, int idx2) { + return ppart[idx1] == ppart[idx2]; }; // Test 1: All cells in Well 1 (main bore and branches) should be in the same partition