From f0610a1fa232346ca050b6a4757dcf09e5f043a7 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 19 Feb 2006 23:14:37 +0000 Subject: Added + and == operators between std::string and irc::string. Its too late at night to wrestle with the = operator, this can wait for another time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3260 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/hashcomp.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 -- cgit v1.3.1-10-gc9f91