Pimpl copying

Simon Hausmann hausmann at kde.org
Fri Jul 14 10:42:19 BST 2006


On Friday 14 July 2006 11:24, Frans Englich wrote:
> On Friday 14 July 2006 08:33, André Wöbbeking wrote:
> > On Thursday 13 July 2006 23:05, Peter Kümmel wrote:
>
> [...]
>
> > > This introduces a new macro KDE_PIMPL_COPYABLE
> > > which declares the pimpl AND the copy functions.
> > >
> > > KDE_PIMPL_UNCOPYABLE declares the copy functions
> > > as private, so we get an error at compile time.
> > >
> > > Or is there already a Qt way to handle this?
> >
> > Q_DISABLE_COPY
>
> Yupp, Q_DISABLE_COPY is great for that.
>
> The problem is that it's not public API. I've requested Trolltech to make
> it public API(N117559) but didn't get a concrete reply: "Indeed, I've
> passed this on to the appropriate people and they will look into if we want
> to make these public at some point."
>
> Same goes for other macros such as Q_GLOBAL_STATIC*(which also is used in
> KDE) but there I got an explcit reply that it's not public API and intends
> to stay that way.
>
> Simon, could you look into making Q_DISABLE_COPY public API for Qt 4.2?
> Would be really practical since many use it.

Feel free to use Q_DISABLE_COPY in KDE :)


Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060714/e2d4597a/attachment.sig>


More information about the kde-core-devel mailing list