I tried to reproduce the example on the web page on adapting legacy code (http://www.boost.org/doc/libs/1_64_0/libs/geometry/doc/html/geometry/examples/example__adapting_a_legacy_geometry_object_model.html). I just adapted a few lines of the code by replacing QPoint::double with just double.

But I get the following error message when I try to compile this few lines of code:

       QPolygon pol;

       QPoint point(1, 2);


       boost::geometry::append(pol, point);


error C2664: 'void boost::geometry::detail::append::append_point<QRing,Point>::apply(Geometry &,const Point &,int,int)' : cannot convert argument 1 from 'const QRing' to 'QRing &'


Can anyone help me with that?


Thank you in advance,


Xavier Ventura Simon

GAF AG • Arnulfstr. 199 • 80634 Munich • Germany
Phone: +49 89 121528 872 • Fax: +49 89 121528 79
xavier.venturasimon@gaf.de http://www.gaf.de

CEO: Dr. Peter Volk, Chairman of the supervisory board: Massimo Comparini
Place of business: Munich, Magistrate's court Munich HRB 140 509

WARNING: This message contains confidential and/or proprietary information which may be subject to privilege or immunity and which is intended for the use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format. Any other use of this e-mail is strictly forbidden. Thank you in advance for your cooperation.