[LyX/master] Add move constructor and move assignment operator for FileName class

Kornel Benko kornel at lyx.org
Thu Jan 14 19:26:57 UTC 2021


Am Thu, 14 Jan 2021 21:17:26 +0200
schrieb Yuriy Skalko <yuriy.skalko at gmail.com>:

> > Yes, it helps. Now the next are
> >         /usr2/src/lyx/lyx-git/src/graphics/GraphicsCacheItem.cpp:445
> >         /usr2/src/lyx/lyx-git/src/mathed/MathExtern.cpp:602
> >         /usr2/src/lyx/lyx-git/src/mathed/MathExtern.cpp:687
> >         /usr2/src/lyx/lyx-git/src/mathed/MathExtern.cpp:772
> >         /usr2/src/lyx/lyx-git/src/mathed/MathExtern.cpp:860
> >         /usr2/src/lyx/lyx-git/src/Buffer.cpp:1474
> >         /usr2/src/lyx/lyx-git/src/BufferList.cpp:131
> >         /usr2/src/lyx/lyx-git/src/TocBackend.cpp:148
> > 
> > Changing all of them now compiles. Thanks.
> > 
> >         Kornel  
> 
> 
> Great. So Clang is more strict than GCC. But why Stephan and Scott don't 
> have these errors with it? Do you have some additional compiler flags 
> active?
> 
> 
> Yuriy
> 

Maybe '-std=c++17'?
/usr/bin/clang++-8 -DBOOST_USER_CONFIG="<config.h>" -DHUNSPELL_STATIC -DQT_CORE_LIB
-DQT_GUI_LIB -I/BUILD/BUILDMint18/BuildLyxGitQt5.9.5local-clang8.0.0
-I/usr2/src/lyx/lyx-git/src -I/usr/include/enchant
-I/usr2/src/lyx/lyx-git/3rdparty/hunspell/1.7.0/src/hunspell
-I/usr2/src/lyx/lyx-git/3rdparty/hunspell/1.7.0/src
-I/usr2/src/lyx/lyx-git/3rdparty/boost -I/usr2/src/lyx/lyx-git/3rdparty/nod
-I/usr2/src/lyx/lyx-git/src/support
-I/BUILD/BUILDMint18/BuildLyxGitQt5.9.5local-clang8.0.0/src/support
-I/usr2/src/lyx/lyx-git/3rdparty/zlib/1.2.11 -isystem /usr/include/x86_64-linux-gnu/qt5
-isystem /usr/include/x86_64-linux-gnu/qt5/QtCore
-isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++
-isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -Wall -Wextra -Wno-deprecated-copy
--std=c++17 -Wno-deprecated-register -DENABLE_ASSERTIONS=1 -D_GLIBCXX_DEBUG
-D_GLIBCXX_DEBUG_PEDANTIC -fno-strict-aliasing  -O0 -g3 -D_DEBUG -fPIC -std=c++17

	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/20210114/68ced078/attachment-0001.asc>


More information about the lyx-devel mailing list