You can use the equivalent parameter /std:
https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019

Example: cl /std:c++14. If the standard is not supported, you get the
warning D9002.

Thibaut Cuvelier


On Mon, 4 May 2020 at 11:34, Kornel Benko <[email protected]> wrote:

> Am Mon, 4 May 2020 06:05:51 +0200
> schrieb Thibaut Cuvelier <[email protected]>:
>
> > 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
> --
> lyx-devel mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-devel
>
-- 
lyx-devel mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to