Re: Compilation error with MSVC 19

2021-01-04 Thread Jean-Marc Lasgouttes
Le 04/01/2021 à 17:30, Thibaut Cuvelier a écrit : On Mon, 4 Jan 2021 at 15:05, Jean-Marc Lasgouttes > wrote: I really wonder why this is not the default yet. The only sensible answer is "backward compatibility"… They still advertise pre-C++98 by default! Spook

Re: Compilation error with MSVC 19

2021-01-04 Thread Thibaut Cuvelier
On Mon, 4 Jan 2021 at 15:05, Jean-Marc Lasgouttes wrote: > Le 30/12/2020 à 09:01, Yuriy Skalko a écrit : > > I think the right way will be using only standard-compliant > > "__cplusplus" in sources and adding the option "/Zc:__cplusplus" for > > MSVC compiler in the build scripts so it handle __c

Re: Compilation error with MSVC 19

2021-01-04 Thread Jean-Marc Lasgouttes
Le 30/12/2020 à 09:01, Yuriy Skalko a écrit : I think the right way will be using only standard-compliant "__cplusplus" in sources and adding the option "/Zc:__cplusplus" for MSVC compiler in the build scripts so it handle __cplusplus in standard-compliant way: https://docs.microsoft.com/en-u

Re: Compilation error with MSVC 19

2020-12-30 Thread Thibaut Cuvelier
On Wed, 30 Dec 2020 at 23:17, Kornel Benko wrote: > Am Wed, 30 Dec 2020 21:08:42 +0100 > schrieb Thibaut Cuvelier : > > > On Wed, 30 Dec 2020 at 16:06, Kornel Benko wrote: > > > > > Am Wed, 30 Dec 2020 15:17:36 +0100 > > > schrieb Thibaut Cuvelier : > > > > > > > On Wed, 30 Dec 2020 at 09:01, Yu

Re: Compilation error with MSVC 19

2020-12-30 Thread Kornel Benko
Am Wed, 30 Dec 2020 21:08:42 +0100 schrieb Thibaut Cuvelier : > On Wed, 30 Dec 2020 at 16:06, Kornel Benko wrote: > > > Am Wed, 30 Dec 2020 15:17:36 +0100 > > schrieb Thibaut Cuvelier : > > > > > On Wed, 30 Dec 2020 at 09:01, Yuriy Skalko > > wrote: > > > > > > > > Here is a newer version of th

Re: Compilation error with MSVC 19

2020-12-30 Thread Thibaut Cuvelier
On Wed, 30 Dec 2020 at 16:06, Kornel Benko wrote: > Am Wed, 30 Dec 2020 15:17:36 +0100 > schrieb Thibaut Cuvelier : > > > On Wed, 30 Dec 2020 at 09:01, Yuriy Skalko > wrote: > > > > > > Here is a newer version of the patch that does not use _HAS_CXX17, > as it > > > > should not really be relied

Re: Compilation error with MSVC 19

2020-12-30 Thread Yuriy Skalko
> I think the right way will be using only standard-compliant > "__cplusplus" in sources and adding the option "/Zc:__cplusplus" for > MSVC compiler in the build scripts so it handle __cplusplus in > standard-compliant way: > > > https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?v

Re: Compilation error with MSVC 19

2020-12-30 Thread Kornel Benko
Am Wed, 30 Dec 2020 15:17:36 +0100 schrieb Thibaut Cuvelier : > On Wed, 30 Dec 2020 at 09:01, Yuriy Skalko wrote: > > > > Here is a newer version of the patch that does not use _HAS_CXX17, as it > > > should not really be relied upon ( > > > > > https://stackoverflow.com/questions/52379233/is-ha

Re: Compilation error with MSVC 19

2020-12-30 Thread Thibaut Cuvelier
On Wed, 30 Dec 2020 at 09:01, Yuriy Skalko wrote: > > Here is a newer version of the patch that does not use _HAS_CXX17, as it > > should not really be relied upon ( > > > https://stackoverflow.com/questions/52379233/is-has-cxx17-marco-usable-in-custom-project-headers-to-enable-c17-language > ).

Re: Compilation error with MSVC 19

2020-12-30 Thread Yuriy Skalko
Here is a newer version of the patch that does not use _HAS_CXX17, as it should not really be relied upon ( https://stackoverflow.com/questions/52379233/is-has-cxx17-marco-usable-in-custom-project-headers-to-enable-c17-language). I think the right way will be using only standard-compliant "__cp

Re: Compilation error with MSVC 19

2020-12-29 Thread Thibaut Cuvelier
On Wed, 30 Dec 2020 at 00:52, Thibaut Cuvelier wrote: > On Tue, 29 Dec 2020 at 23:50, Yuriy Skalko wrote: > >> > I just tried to recompile LyX on MSVC 19, this is the error I get: >> > >> > >> > [ 40%] Building CXX object >> > src/frontends/qt/CMakeFiles/frontend_qt.dir/GuiApplication.cpp.obj >>

Re: Compilation error with MSVC 19

2020-12-29 Thread Thibaut Cuvelier
On Tue, 29 Dec 2020 at 23:50, Yuriy Skalko wrote: > > I just tried to recompile LyX on MSVC 19, this is the error I get: > > > > > > [ 40%] Building CXX object > > src/frontends/qt/CMakeFiles/frontend_qt.dir/GuiApplication.cpp.obj > > GuiApplication.cpp > > D:\LyX\lyx-unstable\3rdparty\nod\nod.hp

Compilation error with MSVC 19

2020-12-29 Thread Yuriy Skalko
I just tried to recompile LyX on MSVC 19, this is the error I get: [ 40%] Building CXX object src/frontends/qt/CMakeFiles/frontend_qt.dir/GuiApplication.cpp.obj GuiApplication.cpp D:\LyX\lyx-unstable\3rdparty\nod\nod.hpp(272): error C2653: 'result_of': is not a class or namespace name D:\LyX\lyx

Compilation error with MSVC 19

2020-12-29 Thread Thibaut Cuvelier
Dear list, I just tried to recompile LyX on MSVC 19, this is the error I get: [ 40%] Building CXX object src/frontends/qt/CMakeFiles/frontend_qt.dir/GuiApplication.cpp.obj GuiApplication.cpp D:\LyX\lyx-unstable\3rdparty\nod\nod.hpp(272): error C2653: 'result_of': is not a class or namespace name