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 25 by douglas, 2004-07-17T16:29:02-07:00 vs.
Revision 30 by douglas, 2004-07-19T21:24:52-07:00

# Line 30 | Line 30 | public:
30          friend std::ostream& operator<<(std::ostream& sout, const Buddy& buddy);
31   };
32  
33 + inline ext::String operator+(const Buddy& buddy, const ext::String& string)
34 + {
35 +        return ext::String(buddy) + string;
36 + }
37 +
38 + inline ext::String operator+(const ext::String& string, const Buddy& buddy)
39 + {
40 +        return string + ext::String(buddy);
41 + }
42 +
43 + inline ext::String operator+(const ext::Uuid& uuid, const ext::String& string)
44 + {
45 +        return lexical_cast<ext::String>(uuid) + string;
46 + }
47 +
48 + inline ext::String operator+(const ext::String& string, const ext::Uuid& uuid)
49 + {
50 +        return string + lexical_cast<ext::String>(uuid);
51 + }
52 +
53   #endif // _Buddy_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines