diff options
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r-- | include/hashcomp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index 3aa838da2..0d6bc7e6f 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -136,4 +136,13 @@ namespace irc std::ostream& operator<<(std::ostream &os, const irc::string &str); std::istream& operator>>(std::istream &is, irc::string &str); +/* Define operators for + and == with irc::string to std::string for easy assignment + * and comparison - Brain + */ + +std::string& operator+ (std::string& leftval, irc::string& rightval); +irc::string& operator+ (irc::string& leftval, std::string& rightval); +std::string& operator== (std::string& leftval, irc::string& rightval); +irc::string& operator== (irc::string& leftval, std::string& rightval); + #endif |