mirror of https://github.com/CGAL/cgal
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:
parent
da1791759c
commit
b319b31825
|
|
@ -130,6 +130,7 @@ public:
|
||||||
Handle_for(const Handle_for& h)
|
Handle_for(const Handle_for& h)
|
||||||
: ptr_(h.ptr_)
|
: ptr_(h.ptr_)
|
||||||
{
|
{
|
||||||
|
CGAL_assume (ptr_->count > 0);
|
||||||
++(ptr_->count);
|
++(ptr_->count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue