
11 Mar
2009
11 Mar
'09
4:22 p.m.
I'm still having some problems with this. Some compilers are flaging as an error the case where B doesn't have a default constructor.
Rightly too I suspect :-( What happens if you give class X an explicit default constructor that is declared but not implemented? Maybe copy constructor, and assignment ops too in case the compiler tries to automatically create those? HTH, John.