Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] C++ Standard

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] C++ Standard


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] C++ Standard
  • Date: Thu, 7 Jun 2018 11:02:42 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:MrlxVx2VsWmwejtqsmDT+DRfVm0co7zxezQtwd8ZseIWL/ad9pjvdHbS+e9qxAeQG9mDtrQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYwhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmlTkJNzA5/m/UhMJ/gq1UrxC9qBFk2YHYfJuYOeBicq7Tf94XQ3dKUMZLVyxGB4Oxd5cCD+wcMuZCsYbyvUAOpga+Cwa2H+zv0D5IjWLx0KIg1eQuDBvG0xI6ENIVqnjUos/6O7wIUeC016TIwivMb/RT2Tjj9IjIaBAgof+WUr1sbcrRzlMvFgPfglqMrozlOiqY2+IQuGaY9+ptTe2ihm89pw1svjSixt0gh4jUio4P11zJ+iF0zJ4xKNGkUkJ2Yt+pHIFNuyyeKYd6WN4uTmF2tCs817YIo4S0fDIQx5Qi3xPfa+KIc4yP4h/7VuudOzJ4hHV4dL+9hRu+602gxff9VsmwyVpKqTdFksXWunAKyRzT6tKLSv1j8Ue9wTqP1gbT5f9YIU0smqfWKoQtzqMsmpcTq0jOHzL6lF/rgKKZckgo4u2o5P7mYrXiqJ+cLYh0igTmP6s0nMywHP44PRYUUGiA4+i82qfs8lbjQLVLlfA2nbfWsJffJcsFuq65GQ9U0og55BmjEzem184YnHkdIF1ZfxKHipDlO0vSL/DgEfe/n1OsnS93yPDJJLLhBozBIWXCkLf6Ybl99lVcyBEowNBE55NUD6kBL+jpVk/wstzYFB45PBauz+bpEtUunr8ZDGmAC6vcPKLJukKT/couJfONbckbomXTMf8gstfogWU0kERVU6Cjx5pfPHm+Eu5rKl7fb3PmmNYpHmoNuwciVv3kgVaeViRCIX21WvRvtXkAFIu6ANKbFciWi7ub0XLjR8wEViV9ElmJVEzQWcCBUvYIZjiVJ5U4wDMJUr2sV5Uw2xilqAjg2vxsKe+GonRE56Km78B84qjorT937SZ9VZ3P3GyKSmxohHIGTjQq27pu50d6zwXbiPUqs7ljDdVWoshxfEI6OJrblbIoVJb3XVueIZGMQVeiB9K7HXc2UNJ3xdISMR5w


It's always a question of balance to find. The switch to C++11 will come soon,
but there are always the latest language features which are the coolest.

Also there are more users than stopped-to-participants, and they are happy
not to be forced to upgrade user code with every release, and as Sebastien
said, we take care that CGAL compiles with modern compilers and switches
such as /std:c++latest.

Best,

Andreas

ps.:   Just out of curiosity: you would like to participate in which form?

On 6/7/2018 10:49 AM, Raphael Grimm wrote:
Hi,

it is the second reason.
Though i can understand why libraries tend to stick to c++03 to prevent breaking stuff, I do not know how many people still use a compiler without c++11 support.
This also stops some developers (e.g. me) to participate working on a library since all features have to be working for old c++ standards and you have to be careful not to break for these old versions.

Furthermore the library can't benefit from new features (or has to add a lot of #if ).
This makes the code harder to read and understand.

Since this library has breaking changes in new versions, I see no problem in requiring a slightly newer c++ standard (c++11 is around 7 years old).

Best Regards,

Raphael


On 06.06.2018 17:29, Andreas Fabri wrote:

Hi Raphael,

I was also wondering if you were worried that we might advance too quickly
because for whatever reason you are bound to an old compiler.

Or if you find us too slow by not picking up lambdas, auto,....

Best,

Andreas


On 6/6/2018 10:18 AM, Sebastien Loriot (GeometryFactory) wrote:
Note that this does not mean that the code is not working
with c++11 nor c++17. We simply offer support for old compilers.
At some point we'll probably move the minimal version to c++11
but nothing has been decided yet.

Sebastien.

On 06/05/2018 04:10 PM, Raphael Grimm wrote:
Hi,
according to "Documentation/doc/Documentation/Preliminaries.txt" the standard used in CGAL is c++03.
Is there a plan of moving to c++11 or higher as a required minimal function?

Best regards.

Raphael



-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri


-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri



Archive powered by MHonArc 2.6.18.

Top of Page