Patches to improve compatibility with modern C++ standard

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue May 5 10:43:33 UTC 2020


Le 05/05/2020 à 12:36, Yu Jin a écrit :
> Still same errors, unary_function was removed in the newer c++ 
> standards, and the patch sets language standard to latest (Vorschau – 
> Features aus dem aktuellen C++-Arbeitsentwurf (/std:c++latest)) for me, 
> where it's just "standard" whithout it. I attached the message line at 
> the end of CMakeLists, it says  "MSVC_VERSION = 1925".

Kornel, what is the purpose of your patch? I see things like /std:c++20 
in there.

I thought the purpose was to enforce preferably C++14 and then C++11 if 
not available. That's what is done in autotools in any case.

Until we use some C++17/20 feature, I do not see the point to ask the 
compiler to use them. Of course, it is important to get away 
progressively from obsolete features use as we already do, but this is a 
different issue.

JMarc



More information about the lyx-devel mailing list