[Why this Followup-To: header???]

"jalkadir" <[EMAIL PROTECTED]> writes:

> I my program I have overloaded the inserters and extractor operator.
> ---name.hpp
>     friend std::ostream& std::operator<<( std::ostream& os,
>                                      const jme::Name& obj );
>     friend std::istream& std::operator>>( std::istream& is,
>                                      jme::Name& obj );

You can't do that.

The namespace std is sealed; the set of things we mere users are
allowed to do in it is restricted. Adding an operator overload is not
one of the things we are allowed to do.

Make these operators members of namespace jme.


Apart from that: What are these operators friend of?
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to