Re: [gtkmm] Replacing dynamic_cast<> with static_cast<> - compilererror.
- From: Murray Cumming <murrayc usa net>
- To: Jarek Dukat <madmaxer poczta fm>
- Cc: gtkmm-main <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Replacing dynamic_cast<> with static_cast<> - compilererror.
- Date: 18 Sep 2002 16:07:28 +0100
On Wed, 2002-09-18 at 15:50, Jarek Dukat wrote:
> > On Wed, 2002-09-18 at 15:42, Paulo Pinto wrote:
> > > Which means that the dynamic_cast can't be safely replaced.
> > > So there's no use in trying to solve that bug that Murray
> > > was refering to. Just tell people to upgrade their compilers.
> >
> > Or not to use the convenience constructors. I have added an FAQ entry
> > about this.
>
> I think it would be nice to surround these dangerous c-tors with ifdefs
> dependent on compiler version and in this way make them not available for
> people using gcc 2.95/2.96. What do you think about it?
I don't like it, but it does seem like the best solution. Maybe you
could provide a patch.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]