DRAFT document on coding conventions in kde libraries

Michael Pyne michael.pyne at kdemail.net
Mon Mar 6 14:29:49 GMT 2006


On Monday 06 March 2006 07:22, Thiago Macieira wrote:
> When you try to cast "ptr" to "Derived", it'll use yet another "typeinfo
> for Derived". Since they aren't the same object, the cast will always
> fail.
>
> Also note that static_cast<> will work.

This problem has occurred in lots of actual KDE code when we first started 
porting to support gcc 3.4's visibility feature.  It caused some crashes in 
JuK and KMail at least.

Regards,
 - Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060306/4058c747/attachment.sig>


More information about the kde-core-devel mailing list