You need:
class d : public c
By default, class inheritance is private .
When you privately inherit from a class or struct , you explicitly say, among other things, that direct conversion from a derived type to a base type is not possible.
Luchian Grigore May 6 '12 at 18:02 2012-05-06 18:02
source share