Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] A question on circulators

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] A question on circulators


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] A question on circulators
  • Date: Thu, 08 Nov 2012 12:45:55 +0100
  • Organization: GeometryFactory

jmt
<>
writes:

> I have a polygon for which I define a circulator :
>
> Polygon::Edge_const_circulator circulator;
>
> When using this circulator to loop over the polygon, the following code
> wont't
> compile :
> std::cout << "Edge, from " << circulator->source() ...
>
> while this code will :
> std::cout << "Edge, from " << (*circulator).source() ...
>
> Is there anything special in circulators that prevents the use
> of the -> operator ?
>
> gcc version 4.7.2 (Debian 4.7.2-4)
> CGAL_VERSION 4.0.2

That is a glitch. The necessary operators are missing. Shouldn't be too
hard to fix yourself, if it is urgent. I'll try to get it patched for
the next release.



Archive powered by MHonArc 2.6.18.

Top of Page