[SOLVED] Re: Question about operator = overloaded in reportdesign module
Lubos Lunak
l.lunak at suse.cz
Thu Jan 3 06:08:14 PST 2013
On Wednesday 02 of January 2013, Lionel Elie Mamane wrote:
> C++11 has a specific syntax to achieve mostly the same effect more
> cleanly:
>
> OXMLCell& operator =(const OXMLCell&) = delete;
>
> That's slightly better since it tells the compiler that this class
> should have *no* assignment operator. So any code that tries to use it
> will have an error message "no such operator".
...
> (We cannot yet use C++11 in LibreOffice because not all platforms we
> want to support have good (any?) support for C++11)
We can:
OXMLCell& operator =(const OXMLCell&) SAL_DELETED_FUNCTION;
--
Lubos Lunak
l.lunak at suse.cz
More information about the LibreOffice
mailing list