[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Pimpl copying
From: Matthias Kretz <kretz () kde ! org>
Date: 2006-07-19 15:01:59
Message-ID: 200607191702.08864.kretz () kde ! org
[Download RAW message or body]
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@gmx.net, kretz@kde.org,
Matthias.Kretz@urz.uni-heidelberg.de
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic