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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 29 05:02:42 PDT 2015


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

--- Comment #18 from Siddharth Khabia <siddharthkhabia at gmail.com> ---
(In reply to Kohei Yoshida from comment #15)
> (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++).

thanks for the help ! :)

-- 
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/20150929/97fddb8b/attachment.html>


More information about the LibreOffice mailing list