On Tue, 29 Jun 2004 15:44:05 +0200, "Jazper Manto"
If the container classes were designed to be derived from they would
have virtual functions so that you could modify their behaviour. But
that would hurt performance (both time and space), hence the designers
didn't go down that route (and most are grateful for this).
Just derive from fstream. fstream isn't part of the STL, and is
designed to be inherited from. But note that the only virtual method
in fstream is the destructor (IIRC). If you need to change the
behaviour of an fstream (rather than just add functionality), then you
do it using the streambuf and locale components of the library.
C++ FAQ: http://www.yqcomputer.com/
C FAQ: http://www.yqcomputer.com/