C
Christopher Pisz
I set out to make a custom logger. Examining some other code laying around,
I came across one that derived from ostream, and had a associated class
derived from streambuf. Is this practice a good idea? I was under the
impression that deriving from std classes that do not have virtual methods
was bad. Is ostream designed to be derived from?
If, so are there any resources on how to do this properly? ostream has alot
if internals that look pretty difficult to..for loss of words...understand
completely.
Thanks.
I came across one that derived from ostream, and had a associated class
derived from streambuf. Is this practice a good idea? I was under the
impression that deriving from std classes that do not have virtual methods
was bad. Is ostream designed to be derived from?
If, so are there any resources on how to do this properly? ostream has alot
if internals that look pretty difficult to..for loss of words...understand
completely.
Thanks.