]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/hashcomp.h
Convert more by-values to const references, optimise ConfigReader a bit
[user/henk/code/inspircd.git] / include / hashcomp.h
index 3aa838da2f93c52e0233c970c801344098b93143..7ec813ad6b7db5557ed0e2187ae0df210052d54a 100644 (file)
@@ -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);
+bool operator== (std::string& leftval, irc::string& rightval);
+bool operator== (irc::string& leftval, std::string& rightval);
+
 #endif