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.lu...@suse.cz _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice