X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fhashcomp.h;h=9499c00e49c17a1579351db8dc08fc33ba05b200;hb=b708dff6d2897271321764117582a47699e72876;hp=24d0af60054728d1855843a5022e9af3c63dd73b;hpb=63ee682557f9d63daeaa17788923223b58f83452;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/hashcomp.h b/include/hashcomp.h index 24d0af600..9499c00e4 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -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 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 -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 -static inline bool operator != (irc::string const &lhs, char const (&rhs)[N]) -{ - return !(lhs == rhs); -} +#endif /** Assign an irc::string to a std::string. */