hi there
i m having a base class
class base
{
...
};
and two derived class, which have inherited 'base' but the inheritance is
not virtual
class derived1 : public base
{
....
};
class derived2 : public base
{
....
};
now i m having another derived class, which requires functionality of both
derived1 and derived2 but since base class inheritance was not virtual, it
is giving me ambiguity problem
the problem here is that, i m having those classes base, derived1 and
derived2 as a part of a huge library, i m having access to just the header
files,
one solution here would be to modify the header file manually and add the
keyword 'virtual' and make inheriance of base class virtual for all the
derived class, derived1 and derived2
but that would require me to make those changes to those classes in each and
every header file, on the system where i want to compile my program, and
hence i would be loosnig protability
any suggestions ??