Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] BUG in Filtered_bbox_circular_kernel_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] BUG in Filtered_bbox_circular_kernel_2


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] BUG in Filtered_bbox_circular_kernel_2
  • Date: Fri, 18 Apr 2008 13:50:33 +0200

Wolfgang Aigner wrote:
On Friday 18 April 2008 11:48:50 Andreas Fabri wrote:
Wolfgang Aigner wrote:
simple destructor with delete for bbox if not NULL indeed did the job,
thank you!
I am not sure that this is enough. When you copy construct a point
the pointer is just copied. So when you destruct the first copy
the shared bbox is deleted.

andreas

True. It worked for the minimal example, but seems generally to be a bit more complicated. A solution would be a reference counter or a smart pointer i guess.

wolfgang

Or a copy constructor setting the bbox to NULL. The function
accessing the bbox creates it on the fly if necessary.

andreas



Archive powered by MHonArc 2.6.16.

Top of Page