Patches to improve compatibility with modern C++ standard
Kornel Benko
kornel at lyx.org
Mon May 4 09:34:18 UTC 2020
Am Mon, 4 May 2020 06:05:51 +0200
schrieb Thibaut Cuvelier <dourouc05 at gmail.com>:
> Dear list,
>
> During my work on DocBook (which started at www.lyx.org/trac/ticket/8444),
> I switched to Visual C++ 2019 as a compiler. The only way I found to make
> it compile large parts of LyX was to switch to recent C++ standards, so
> that all features are available. Unfortunately, some deprecated parts of
> C++ have been removed in the latest versions of the standard… These changes
> are probably not required for now with other compilers, but some form will
> be required in the future when switching to newer C++ versions.
>
> This series of patches allow LyX to be built with VC 19, when switching to
> the latest C++ version, more specifically using the following CMake command:
>
> set(CMAKE_CXX_STANDARD 20)
> >
>
> These patches have already been revised by Guillaume Munch:
> https://gitlab.com/gadmm/lyx-unstable/-/merge_requests/2. One of the
> largest changes is due to the addition of requires to the list of keywords,
> which is currently replaced by requirements, which is close in meaning.
>
> Would it be possible to have them merged into LyX' main Git repository?
>
> Thanks in advance!
> Thibaut Cuvelier
How can we test if the standard is valid on different Visual C++?
(For instance we test if the compile flag "--std=c++14" is accepted by gcc)
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200504/3f8731a7/attachment.asc>
More information about the lyx-devel
mailing list