From 08b418bda2824dccd949ce4e87abe9f167a1401c Mon Sep 17 00:00:00 2001 From: JacksonCampolattaro Date: Thu, 22 Jun 2023 14:11:30 +0200 Subject: [PATCH] Ensure properties of a moved-from tree are also moved-from --- Orthtree/include/CGAL/Orthtree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orthtree/include/CGAL/Orthtree.h b/Orthtree/include/CGAL/Orthtree.h index 97a5c1303fb..0324394627d 100644 --- a/Orthtree/include/CGAL/Orthtree.h +++ b/Orthtree/include/CGAL/Orthtree.h @@ -288,7 +288,7 @@ public: Orthtree(Orthtree&& other): m_traits(other.m_traits), m_range(other.m_range), m_point_map(other.m_point_map), m_nodes(std::move(other.m_nodes)), m_bbox_min(other.m_bbox_min), m_side_per_depth(other.m_side_per_depth), - m_node_properties(other.m_node_properties), + m_node_properties(std::move(other.m_node_properties)), m_node_points(m_node_properties.get_property>("points")), m_node_depths(m_node_properties.get_property("depths")), m_node_coordinates(m_node_properties.get_property>("coordinates")),