Assume refcount>0 when copying.

Hopefully it will help compilers understand that destructing a copy
can't bring the counter to 0.
This commit is contained in:
Marc Glisse 2013-11-16 12:14:44 +01:00
parent da1791759c
commit b319b31825
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ public:
Handle_for(const Handle_for& h)
: ptr_(h.ptr_)
{
CGAL_assume (ptr_->count > 0);
++(ptr_->count);
}