Patches to improve compatibility with modern C++ standard

Kornel Benko kornel at lyx.org
Thu Jun 4 13:22:28 UTC 2020


Am Thu, 4 Jun 2020 15:03:28 +0200
schrieb Yu Jin <technikmagma at gmail.com>:

> Am Di., 5. Mai 2020 um 13:49 Uhr schrieb Kornel Benko <kornel at lyx.org>:
> 
> > Am Tue, 5 May 2020 13:39:35 +0200
> > schrieb Yu Jin <technikmagma at gmail.com>:
> >
> > > Am Di., 5. Mai 2020 um 13:10 Uhr schrieb Kornel Benko <kornel at lyx.org>:
> > >
> > > > Am Tue, 5 May 2020 12:36:03 +0200
> > > > schrieb Yu Jin <technikmagma at gmail.com>:
> > > >
> > > > > Am Di., 5. Mai 2020 um 09:16 Uhr schrieb Kornel Benko <
> > kornel at lyx.org>:
> > > > >
> > > > > > Am Tue, 5 May 2020 09:15:50 +0200
> > > > > > schrieb Kornel Benko <kornel at lyx.org>:
> > > > > > > Thanks Eugene. Please try the next patch.
> > > > > > > If it also does not work, we have to decide on the msvc version
> > > > > > > what to do.
> > > > > > >
> > > > > > > Could you also check the msvc-version (somewhere in the
> > > > CMakeLists.txt)
> > > > > > >
> > > > > > >       message(STATUS "MSVC_VERSION = ${MSVC_VERSION}")
> > > > > > >
> > > > > > >       Kornel
> > > > > >
> > > > > > Forgot to attach.
> > > > > >
> > > > > 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".
> > > > >
> > > > > Eugene
> > > >
> > > > Sorry, next try.
> > > >
> > > Worked.
> > >
> > > Eugene
> >
> > I will commit, but for sure this is not the last change.
> 
> 
> Sorry for the trouble, I just updated Visual Studio to version 16.6.1
> (always try to work with the latest software). My MVSC version according to
> CMake is now 1926, and now I can't compile, because the standard is set to
> latest again.
> 
> Eugene

I would remove CMakeCache.txt for start.
The next try would be to remove "/std:c++20" from
development/cmake/modules/FindCXX11Compiler.cmake:51

(Would be nice to have a list of possibilities for this flag depending on the MSVC
version)

	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/20200604/050bdc53/attachment.asc>


More information about the lyx-devel mailing list