[Bug 94306] Replace boost::noncopyable with plain C++11 deleted copy ctors
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 25 22:43:25 PDT 2015
https://bugs.documentfoundation.org/show_bug.cgi?id=94306
--- Comment #6 from Daniel L Robertson <danlrobertson89 at gmail.com> ---
The only real difference between structs and classes is the default access.
class NonCopyable {
public:
NonCopyable(const NonCopyable&) = delete;
const NonCopyable& operator=(const NonCopyable&) = delete;
};
is essentially the same as
struct NonCopyable {
NonCopyable(const NonCopyable&) = delete;
const NonCopyable& operator=(const NonCopyable&) = delete;
};
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150926/2722542e/attachment.html>
More information about the LibreOffice
mailing list