[Kget] Refactor transferhandler & transfergrouphandler?
Lukas Appelhans
l.appelhans at gmx.de
Thu Aug 14 12:13:25 CEST 2008
Am Mittwoch 13 August 2008 15:09:04 schrieb Carsten Pfeiffer:
> Am Donnerstag, 14. August 2008 schrieb Lukas Appelhans:
> > If it works it would be great, till now I thought:
> > dynamic_cast<TransferHandlerBase*>(grouphandler);
> > ->valid!
>
> Upcasting is not necessary. You can safely do
> TransferHandlerBase *base = groupHandler;
> without any cast at all.
>
> > dynamic_cast<TransferGroupHandler*>(handler);
> > ->invalid/compile error!
>
> There must be some mistake then... See attached example.
> (g++ main.cpp && ./a.out)
>
> Cheers,
> Carsten
Ok great then!
Thanks for explaining :)
Lukas
More information about the Kget
mailing list