Yes, it does. No errors and no warnings.Originally posted by Eibro
Grrrrr I can't believe I left it in there Now i'll have to go back and edit it...
Does the updated code compile on codewarrior?
Actually cerr/clog would be more valid than cout. cerr is guaranted to point to the screen, whereas cout can point to a file. There's no harm in keeping the ostream parameter, but you could switch the position of the two parameters and make cout/cerr/clog the default.Originally posted by Eibro
Hmm, this wouldn't work for ofstream arguments would it? If not, cerr would be one other valid argument to the function.
If you use this method with an ofstream object, you'll fill the file with strange characters ('\b').