]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/hashcomp.h
Use the error name constants here now rather than magic numbers. magic numbers blow...
[user/henk/code/inspircd.git] / include / hashcomp.h
index 24d0af60054728d1855843a5022e9af3c63dd73b..9499c00e49c17a1579351db8dc08fc33ba05b200 100644 (file)
@@ -621,6 +621,8 @@ inline bool operator!= (const std::string& leftval, const irc::string& rightval)
        return !(leftval.c_str() == rightval);
 }
 
+// FIXME MAXBUF messes up these
+#if 0
 template<std::size_t N>
 static inline bool operator == (std::string const &lhs, char const (&rhs)[N])
 {
@@ -632,18 +634,7 @@ static inline bool operator != (std::string const &lhs, char const (&rhs)[N])
 {
        return !(lhs == rhs);
 }
-
-template<std::size_t N>
-static inline bool operator == (irc::string const &lhs, char const (&rhs)[N])
-{
-       return lhs.length() == N - 1 && !std::memcmp(lhs.data(), rhs, N - 1);
-}
-
-template<std::size_t N>
-static inline bool operator != (irc::string const &lhs, char const (&rhs)[N])
-{
-       return !(lhs == rhs);
-}
+#endif
 
 /** Assign an irc::string to a std::string.
  */