std:: ostream doesn't have a constructor that takes an int. What it does have is a constructor that takes a char *. 0 can be converted to a char * but dereferencing a null pointer usually crashes an application.
use
I don't understand your previous post.
BTW you shouldn't inherit from any of the stream classes. ( they don't have a vitual destructor ).
Use composition instead.
Kurt
I just don't get it... This code works in some environments but not in others...
I've attached the source... If anyone has time to look, that would be great.
I'm on MAC OS X, 10.5.7 using XCode 3.1.2
This is a null stream that accepts data but sends it nowhere. Sort of like a 'black hole' stream.
"It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
Richard P. Feynman
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.