Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] const_iterator begin() in Compact_container

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] const_iterator begin() in Compact_container


Chronological Thread 
  • From: Samuel Hornus <>
  • To:
  • Subject: Re: [cgal-discuss] const_iterator begin() in Compact_container
  • Date: Fri, 11 Jan 2008 18:06:46 +0100
  • Organization: INRIA

On Fri, 11 Jan 2008 17:29:45 +0100
Samuel Hornus
<>
wrote:

> So: Is the Compact_container.h wrong around line 194 ?

> If not, then I don't really know what to do.

I know what to do now: I use const iterators all over the place
in my const methods:

typedef typename Compact_container<Simplex>::const_iterator
Simplex_const_iterator;

And I noticed that, for example, Triangulation_data_structure_3.h
does some const_cast to avoid the problem that I had. :-(

My code compiles now, but I'm not sure "what's the right thing".
Sorry for unraveling my thought publicly. If you have comments and
suggestions however, I welcome them :)
Sam



Archive powered by MHonArc 2.6.16.

Top of Page