[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: 0 or 0L for empty pointers?
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2006-06-23 12:44:28
Message-ID: 200606231444.28220.l.lunak () suse ! cz
[Download RAW message or body]

On Friday 23 June 2006 14:03, Stefan Teleman wrote:
> On Friday 23 June 2006 07:42, Frans Englich wrote:
> > Yes, some features should be avoided
> > in any case like dynamic_cast, but perhaps there's some template
> > features or the like that should be avoided.
>
> Just out of curiosity, why is dynamic_cast<> a Bad Thing(TM) ?

 It is not, in general. But one needs to be careful when using dynamic_cast 
across dlopen boundaries, because under some conditions g++ emits multiple 
rtti info instances which are not merged without using RTLD_GLOBAL and that 
may make dynamic_cast fail. It should be fixable though.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic