ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Buddy.hpp
(Generate patch)

Comparing trunk/Buddy.hpp (file contents):
Revision 30 by douglas, 2004-07-19T21:24:52-07:00 vs.
Revision 31 by douglas, 2004-07-20T00:11:56-07:00

# Line 26 | Line 26 | public:
26          bool operator==(const Buddy& buddy) const { return login == buddy.login; }
27          bool operator<(const Buddy& buddy) const { return login < buddy.login; }
28          operator const ext::String&() const { return login; }
29 // friends:
30        friend std::ostream& operator<<(std::ostream& sout, const Buddy& buddy);
29   };
30  
31   inline ext::String operator+(const Buddy& buddy, const ext::String& string)
# Line 50 | Line 48 | inline ext::String operator+(const ext::
48          return string + lexical_cast<ext::String>(uuid);
49   }
50  
51 + inline std::ostream& operator<<(std::ostream& sout, const Buddy& buddy)
52 + {
53 +        return sout << ext::String(buddy);
54 + }
55 +
56   #endif // _Buddy_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines