SyntaxFix
Write A Post
Hire A Developer
Questions
It's canonical to use references for this; precedence: ostream::operator<<. Pointers and references here are, for all ordinary purposes, the same speed/size/safety.
ostream::operator<<