From 503b259c71e892ee79913d8313e03aac091223fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 2 Jun 2025 19:19:42 +0200 Subject: [PATCH] fix warning: avoid copy --- STL_Extension/include/CGAL/Compact_container.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STL_Extension/include/CGAL/Compact_container.h b/STL_Extension/include/CGAL/Compact_container.h index a58d0ea31f8..293ff1d670e 100644 --- a/STL_Extension/include/CGAL/Compact_container.h +++ b/STL_Extension/include/CGAL/Compact_container.h @@ -582,7 +582,7 @@ public: const_pointer ptr = &*cit; - for (const auto [chunk_ptr, size] : all_items) { + for (const auto& [chunk_ptr, size] : all_items) { // Are we in the address range of this block (excluding first and last // elements) ?