summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/hashcomp.h3
-rw-r--r--src/hashcomp.cpp10
2 files changed, 13 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index f6885fbf0..ce1c403fe 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -541,4 +541,7 @@ 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);
+std::string assign(const irc::string &other);
+irc::string assign(const std::string &other);
+
#endif
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 67dec4e85..6154a4b55 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -604,3 +604,13 @@ unsigned char irc::dynamicbitmask::GetSize()
return bits_size;
}
+std::string assign(const irc::string &other)
+{
+ return other.c_str();
+}
+
+irc::string assign(const std::string &other)
+{
+ return other.c_str();
+}
+