Normally operator << (when used in a "streaming" context) will take a const reference to the argument, and the >> operator a non-const reference.