Compiling in C++20 mode
Kornel Benko
kornel at lyx.org
Mon Dec 28 17:22:55 UTC 2020
Am Mon, 28 Dec 2020 12:08:00 +0200
schrieb Yuriy Skalko <yuriy.skalko at gmail.com>:
> Recently I've had necessity to install latest stable GCC version 10.2
> that has C++20 support. So I didn't miss the opportunity to try
> compiling LyX in C++20 mode too.
>
> The only compilation error is due to recent commit 2d2e2f1c6d. These u8
> string literals have incompatible type:
>
> accents["hairspace"] = u8"\uf0000"; // select from free unicode
> plane 15
> accents["thinspace"] = u8"\uf0002"; // and used _only_ by findadv
> accents["negthinspace"] = u8"\uf0003"; // to omit backslashed latex
> macros
> accents["medspace"] = u8"\uf0004"; // See
> https://en.wikipedia.org/wiki/Private_Use_Areas
> accents["negmedspace"] = u8"\uf0005";
> accents["thickspace"] = u8"\uf0006";
> accents["negthickspace"] = u8"\uf0007";
>
> Kornel, is it possible to express it differently to get rid of
> compatibility problems in the future and make LyX compilable in C++20
> mode now?
> As I understand this can be suitable solution:
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1423r2.html#ordinary
>
>
> Yuriy
Tried at ab7ac800. At least it should be compilable with any c++ compiler.
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/20201228/b5b1de69/attachment.asc>
More information about the lyx-devel
mailing list