Subj : Help with namespace To : borland.public.cpp.borlandcpp From : Maya Date : Wed Dec 10 2003 01:58 pm in the following example: ----- .H -------- namespace jme{ class X{ private: int x; public: X(){ x = 1; } friend std::ostream& operator<<(std::ostream&, const jme::X&); }; //class } //namespace ----- .C -------- std::ostream& jme::X::operator<<(std::ostream& os, const jme::X& data){ return os << data.x; } ----- main.C -------- ..... jme::X obj; std::cout << obj << std::endl; ...... I get the following error: date.C:143: error: `std::ostream& jme::X::operator<<(std::ostream&, const jme::X&)' must take exactly one argument What am I doing wrong? -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! .