Compiling in C++20 mode

Scott Kostyshak skostysh at lyx.org
Tue Dec 29 20:42:17 UTC 2020


On Tue, Dec 29, 2020 at 10:37:15PM +0200, Yuriy Skalko wrote:
> > Thanks, Yuriy. I now get the following error with GCC:
> > 
> > /home/vbox/lyxbuilds/master-clang/repo/src/Buffer.cpp:1774:27: error:
> > use of deleted function ‘std::basic_ostream<char, _Traits>&
> > std::operator<<(std::basic_ostream<char, _Traits>&, wchar_t) [with
> > _Traits = std::char_traits<char>]’
> >  1774 |   oss << "0x" << hex << e.failed_char << dec;
> >       |                           ^~~~~~~~~~~
> > 
> > Scott
> 
> It is the same error, we need static_cast<uint32_t>(...) here too. If you'll
> add option "-k0" when doing build, then we'll be able to see all such errors
> at once and not one by one.

Indeed that seems more efficient :). I didn't know about that option.
Thanks. I'll do this tonight (US EST) and get back to you.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201229/76fa0589/attachment.asc>


More information about the lyx-devel mailing list