From ef3ad5fc463058051dc80ebb9c2006361804363a Mon Sep 17 00:00:00 2001 From: Jackson Campolattaro Date: Tue, 30 Jun 2020 12:26:12 -0400 Subject: [PATCH] Use const ref to split criterion function --- Octree/include/CGAL/Octree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Octree/include/CGAL/Octree.h b/Octree/include/CGAL/Octree.h index 72e16d79cca..4bf02272394 100644 --- a/Octree/include/CGAL/Octree.h +++ b/Octree/include/CGAL/Octree.h @@ -173,7 +173,7 @@ namespace CGAL { m_root.unsplit(); } - void refine(std::function split_criterion) { + void refine(const std::function &split_criterion) { // create a side length map for (int i = 0; i <= (int) 10; i++)