Pimpl copying
Matthias Kretz
kretz at kde.org
Tue Jul 18 15:52:29 BST 2006
On Tuesday 18 July 2006 14:26, Peter Kümmel wrote:
> BTW the cast is the price they pay for their Private "Hinterwelt", means
> there is a second class hierarchy behind the scene.
The cast is a noop (reinterpret_cast) and therefore not a price payed in
performance. The cast is safe as long as you don't use multiple inheritance.
So never expect the following to work:
class APrivate
{
};
class A
{
Q_DECLARE_PRIVATE(A)
};
class B
{
};
class CPrivate : public APrivate
{
};
class C : public B, public A
{
Q_DECLARE_PRIVATE(C)
}
--
C'ya
Matthias
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- 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/20060718/3d3345ce/attachment.sig>
More information about the kde-core-devel
mailing list