Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Cell_handle iterators

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Cell_handle iterators


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Cell_handle iterators
  • Date: Wed, 09 Dec 2009 23:56:33 +0100

Panagiotis Foteinos a écrit :
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?

I fear that there is not enough information in your mail to determine
the cause of your problem.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page