[PATCH] Add override specifier
Richard Kimberly Heck
rikiheck at lyx.org
Mon Oct 5 16:11:06 UTC 2020
On 10/5/20 11:50 AM, José Abílio Matos wrote:
> On Monday, October 5, 2020 2:13:35 PM WEST Jean-Marc Lasgouttes wrote:
>> Yes, clang 10 does
>>
>> JMarc
> BTW compiling with clang 11 and without changing the compile flags I get lots
> (in the tens) of warnings like this:
>
> /home/jamatos/lyx/lyx/src/insets/InsetTabular.h:92:7: warning: definition of
> implicit copy constructor for 'InsetTableCell' is deprecated because it has a
> user-declared copy assignment operator [-Wdeprecated-copy]
> void operator=(InsetTableCell const &);
> ^
> /home/jamatos/lyx/lyx/src/insets/InsetTabular.h:60:37: note: in implicit copy
> constructor for 'lyx::InsetTableCell' first required here
> Inset * clone() const { return new InsetTableCell(*this); }
I have seen things like this from time to time. I guess we need to
declare our own copy constructor, too....
Riki
More information about the lyx-devel
mailing list