Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Constructors/Destructors

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Constructors/Destructors


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Constructors/Destructors
  • Date: Sat, 12 Jun 2010 13:51:14 +0200

Hi,

> isn't this strange? a destructor be called more times than a constructor?

no, you are not monitoring all constructor calls. Add something like

My_face(const My_face&) {
printf("My_face copy constructor!\n");
}

to your example. You should look up "copy constructor" (and probably
"assignment
operator" too) in a C++ book.

> is this related to
> http://www.cgal.org/Manual/3.3/doc_html/Developers_manual/Developers_manual/Chapter_memory_management.html
> memory management done in cgal?

I don't think so. Are you really using CGAL 3.3?

Joachim




Archive powered by MHonArc 2.6.16.

Top of Page