I am trying to make a subclass of strstream, but the compiler keeps giving me a
"cannot find constructor for ios::ios() message… its true that the ios
doesn't have this routine but I never called it, apparantly its being generated
by the compiler automatically. This is apparantly due to some of the
intermediate classes being declared virtual, however I find it hard to believe
that it isn't possible to subclass these.
If somebody would care to provide an example of how to subclass strstream I
would greatly appreciate it.
Heres what I'm trying to do…
———————–
class MacStream::public strstream {
void MyRoutine();
};
void MacStream::MyRoutine() {
}
void Test() {
MacStream ms;
ms.MyRoutine();
}
———————–
It will not compile for due to the compiler error mentioned above.