mirror of https://github.com/CGAL/cgal
Add a move assignment operator to Handle.h
This commit is contained in:
parent
a848e52552
commit
d29baab363
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue