Replies: 1 comment 3 replies
-
Where to begin with? In which of the CGAL packages do you think a use of small pointers might be beneficial? In CGAL we certainly do not see usage of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
First of all, thanks a lot for the awesome project!
I have a question, are there any plans to adopt smart pointers from the STL?
As far as I can understand, CGAL mostly tries to manage memory by direct calls of
new
/delete
, which is quite error-prone. I've also noticed some places, where CGAL uses homegrown "smart" ref-counter, but even they can introduce new bugs, like use-after-free or double-free.Shared and unique pointers are the best options to replace all this staff and reduce the number of
segfaults
issues in CGAL.So, what the CGAL's team think about it?
Thanks for any info,
Cheers
Beta Was this translation helpful? Give feedback.
All reactions