Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Cell_handle iterators

Subject: CGAL users discussion list

List archive

[cgal-discuss] Cell_handle iterators


Chronological Thread 
  • From: Panagiotis Foteinos <>
  • To:
  • Subject: [cgal-discuss] Cell_handle iterators
  • Date: Wed, 09 Dec 2009 16:24:50 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=Jd8cHxNGZjbeJsuXv+42Ge7KIvBORlySLcCAVugygFfAjrbUUDh4uux498eQe/6p/J KF614zuWUCfnKU8YXSIKm97kvtm06DQBTeX+jnLSjwT6uDPUsTGF5K2eaiM1Gu2tAplQ 2uyUQIxS9EcAbEuXv2YrdfOAH1IWiXEDQ/XXc=

Hello all.

I have a list of Cell_handle pointers: std::list<Cell_handle*> my_list.
This list (i.e., my_list) contains pointers of specific Cell_handles.
For example, it may contain pointers that point to Cell_handles of color
red.

After processing the ith element of my_list, I erase this element by
doing my_list.erase(i). Of course, the destructor of the ith pointer is
called, which is no-op, while the destructor of the pointed Cell_handle
is not.

Unfortunately, I am not able to erase elements without a segmentation
fault and I do not understand why: the elements of my_list are pointers
to objects and not objects (Cell_handle is not exactly a pointer...).


How could I resolve this problem?

Regards,
Panagiotis Foteinos



Archive powered by MHonArc 2.6.16.

Top of Page