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

List:       kde-devel
Subject:    Re: MORE INFO (Re: What is the difference between dynamic and static_cast)
From:       Michael Haeckel <Michael () Haeckel ! Net>
Date:       2000-11-09 10:58:53
[Download RAW message or body]

Am Don, 09 Nov 2000 schrieb Thomas Leitner:
> >
> > If qlvi is of type QListViewItem* then I would expect the cast
> > to fail because you are trying to cast a Base* to a Derived*
> > not vice versa.
> 
> This seems to be the main problem. Apparently this is legal in G++
> but illegal in cxx.

Sorry, but for what else could be dynamic_cast useful?
If you want to use a method from the base class in the derived class then you
don't need casting.

Regards,
Michael Häckel

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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