diff --git a/STL_Extension/include/CGAL/Handle.h b/STL_Extension/include/CGAL/Handle.h index 14304c4a7b8..d17b52b0e32 100644 --- a/STL_Extension/include/CGAL/Handle.h +++ b/STL_Extension/include/CGAL/Handle.h @@ -75,6 +75,15 @@ class Handle return *this; } + void reset() + { + if (PTR) + { + --PTR->count; + PTR=0; + } + } + int refs() const { return PTR->count; }