[EMAIL PROTECTED] writes: > I have a class that overloads the inserter and the extractor > operators, but there is a problem with the way I worte the methods; > because the compiler does not like it at all. > > This is the snip of what the problem looks like: > > --- money.hpp > friend std::ostream& std::operator<<( std::ostream&, const jme::Money&); > friend std::istream& std::operator>>( std::istream&, jme::Money& );
We mere users are not allowed to extend the namespace std like this. Better add these operators to namespace jme. Argument-dependent lookup will find them when they are used. _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
