diff options
author | pippijn <pippijn@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-12 21:09:04 +0000 |
---|---|---|
committer | pippijn <pippijn@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-12 21:09:04 +0000 |
commit | 8a51d8969cd1b3800d15af8cf8dc6e15284da7aa (patch) | |
tree | 8a53afcda3873381eafc256253f46f97e75207e8 /include/inspircd.h | |
parent | 5ca2a6ffdb4dbb7f7d8f120df5f99d85d484b3ab (diff) |
revert for now..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9899 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 18bb1c28f..7a06f299c 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -149,18 +149,6 @@ template<typename T> inline long ConvToInt(const T &in) return atoi(tmp.str().c_str()); } -template<typename CharT, typename TraitsT, std::size_t N> -static inline bool operator == (std::basic_string<CharT, TraitsT> const &lhs, char const (&rhs)[N]) -{ - return lhs.length() == N - 1 && !std::memcmp(lhs.data(), rhs, N - 1); -} - -template<typename CharT, typename TraitsT, std::size_t N> -static inline bool operator != (std::basic_string<CharT, TraitsT> const &lhs, char const (&rhs)[N]) -{ - return !(lhs == rhs); -} - /** Template function to convert integer to char, storing result in *res and * also returning the pointer to res. Based on Stuart Lowe's C/C++ Pages. * @param T input value |