Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] A question on circulators


Chronological Thread 
  • From: jmt <>
  • To:
  • Subject: [cgal-discuss] A question on circulators
  • Date: Thu, 8 Nov 2012 12:36:52 +0100
  • Organization: dxdydz.net

Hello,

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

jmt

--


http://www.dxdydz.net

Jean-Marie Thomas

Informatique scientifique et technique



Archive powered by MHonArc 2.6.18.

Top of Page