Re: [IBPP-DISCUSS] inheritance of *Impl classes with gcc 2.96
IBPP is a C++ client class library for FirebirdSQL
Status: Inactive
Brought to you by:
epocman
From: Olivier M. <om...@ti...> - 2001-07-17 23:34:21
|
> I just ran into a problem that I believe we have discussed before > where the *Impl classes are derived as "protected" from the interface > class. ie (from _internals.h) : > > class DatabaseImpl : protected IBPP::Database > > I finally upgraded to Mandrake 8.0 which uses gcc 2.96. This version > of gcc does not appear to tolerate this type of inheritance at all. > It does not issue a warning or an error but the dynamic_casts do not > work, which means that the tests crash almost immediately. I changed > all the protected inheritance to public and everything works again. > (Of course, I didn't check that in.) > > - Matt Hello Matt, Following the discussion we had before (you're right) on that matter, I also changed all protected inheritance to public -- in my local tree. And I'm late (shall I say as always) on committing my work. I suggest that the first of us who has some significant other details to check-in, do check-in that protected-public change at the same time. -- Olivier Mascia |