Pimpl copying

Matthias Kretz kretz at kde.org
Wed Jul 19 16:01:59 BST 2006


On Wednesday 19 July 2006 10:53, Peter Kümmel wrote:
> > The cast is a noop (reinterpret_cast) and therefore not a price payed in
> > performance.
>
> I wonder if a static_cast would not be enought.

AFAIK a static_cast won't work because the compiler doesn't know anything 
about the Private class when looking at the header file only. Try for 
yourself: change the cast in src/corelib/global/qglobal.h to a static_cast 
and compile QtCore... you won't get far.

-- 
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/20060719/19003e10/attachment.sig>


More information about the kde-core-devel mailing list