Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attack Prediction: incomplete conversion of debug output to use C++ s…
…treams Incomplete because C string format syntax is still Greek to me.
- Loading branch information
Showing
1 changed file
with
82 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c83021f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Um. If you're using string streams and then dumping them to
cout
, then why do you even need the string streams? Can't you just output directly tocout
?c83021f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, but is one supposed to modify flags on
cout
/cerr
?c83021f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, there's no reason why you can't, but I suppose it'd be good practice to put them back when you're done. I think one flag also applies only to the next insertion (width, probably?).