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

Kornel Benko kornel at lyx.org
Thu Jan 14 18:57:51 UTC 2021


Am Thu, 14 Jan 2021 20:30:03 +0200
schrieb Yuriy Skalko <yuriy.skalko at gmail.com>:

> > I cannot even compile everything under clang8
> > /usr2/src/lyx/lyx-git/src/support/FileMonitor.cpp:62:9: error: call to 
> > 'make_unique' is
> > ambiguous return make_unique<FileMonitor>(instance().getGuard(filename));
> >                ^~~~~~~~~~~~~~~~~~~~~~~~
> > /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/unique_ptr.h:834:5:
> > note: candidate function [with _Tp = lyx::support::FileMonitor, _Args =
> > <std::shared_ptr<lyx::support::FileMonitorGuard>>] make_unique(_Args&&... 
> > __args)
> > 
> >         Kornel  
> 
> 
> Does replacing make_unique with lyx::make_unique help?
> 
> Yuriy

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
-------------- 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/23560aa8/attachment-0001.asc>


More information about the lyx-devel mailing list