Re: [gtkmm] Replacing dynamic_cast<> with static_cast<> - compilererror.



On Wed, 2002-09-18 at 16:07, Murray Cumming wrote:
> 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.

No, sorry. Stop. These constructors are only a problem when you call
them from derived constructors. And that's quite unusual.

-- 
Murray Cumming
murrayc usa net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]