From e3d7f7946db42f52317b23fcc150a39dcde76e53 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 28 Feb 2020 14:01:20 +0100 Subject: [PATCH] CC_iterator(CC_iterator&&) is now `= default` That fixes a segmentation fault with Visual Studio in Skin Surface Meshing. --- STL_Extension/include/CGAL/Compact_container.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/STL_Extension/include/CGAL/Compact_container.h b/STL_Extension/include/CGAL/Compact_container.h index 6c135a9f36f..f6946fc2758 100644 --- a/STL_Extension/include/CGAL/Compact_container.h +++ b/STL_Extension/include/CGAL/Compact_container.h @@ -908,15 +908,7 @@ namespace internal { return *this; } - CC_iterator(CC_iterator&& it) noexcept -#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP - : ts(Time_stamper::time_stamp(it.operator->())) -#endif - { - m_ptr.p = it.operator->(); - it.m_ptr.p = nullptr; - } - + CC_iterator(CC_iterator&& it) = default; ~CC_iterator() = default; CC_iterator& operator=(const CC_iterator&) = default; CC_iterator& operator=(CC_iterator&&) = default;