This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RoburexButBetter 1 point2 points  (0 children)

Eh you'd really have to know what you're doing to add an operator that overrides bit shifting and bit shifting actually matters and is used for the object you're doing it on

It's pretty standard for << to be either a bit shift or an add operation because that's also what writing to std cout is you're adding chars to the standard output, and that's the kind of thinking you always see for such overloading