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: Wolfgang Aigner <>
  • To:
  • Subject: Re: [cgal-discuss] BUG in Filtered_bbox_circular_kernel_2
  • Date: Fri, 18 Apr 2008 12:44:56 +0200
  • Organization: IST TU Graz

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



Archive powered by MHonArc 2.6.16.

Top of Page