From d29baab36307a75b0807366b713c4be8d83309c9 Mon Sep 17 00:00:00 2001 From: Giles Bathgate Date: Sun, 6 Dec 2020 10:27:15 +0000 Subject: [PATCH] Add a move assignment operator to Handle.h --- STL_Extension/include/CGAL/Handle.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/STL_Extension/include/CGAL/Handle.h b/STL_Extension/include/CGAL/Handle.h index 0d652ccb4cb..efe7c849587 100644 --- a/STL_Extension/include/CGAL/Handle.h +++ b/STL_Extension/include/CGAL/Handle.h @@ -68,6 +68,13 @@ class Handle return *this; } + Handle& + operator=(Handle&& x) noexcept + { + swap(*this,x); + return *this; + } + friend void swap(Handle& a, Handle& b) noexcept { std::swap(a.PTR, b.PTR); } void reset()