[Bug 94306] Replace boost::noncopyable with plain C++11 deleted copy ctors

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Sep 28 05:08:02 PDT 2015


https://bugs.documentfoundation.org/show_bug.cgi?id=94306

--- Comment #15 from Kohei Yoshida <libreoffice at kohei.us> ---
(In reply to Stephan Bergmann from comment #14)
> (In reply to Siddharth Khabia from comment #10)
> > my apology for the earlier comment that was posted by mistake.
> > i want to ask is that are we supposed to remove boost::noncopyable and add
> > the code provided bu BJORN in the public part of the class ?
> 
> You can put those deleted members into a private section (as they cannot be
> called anyway, as they are deleted).

Actually, Scott Meyers recommends those members be put in a public section, for
better compiler error messages (c.f. Item 11 in Effective Modern C++).

-- 
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/20150928/87c963dd/attachment.html>


More information about the LibreOffice mailing list