Am Mon, 28 Dec 2020 12:08:00 +0200
schrieb Yuriy Skalko <yuriy.ska...@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

Attachment: pgpqgJlJTyNSh.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to