diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 23:56:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 23:56:22 +0000 |
commit | 33530c338c1daaed0a48f8e3c9ccb21ec9ced49c (patch) | |
tree | f7efba34e648bb55dad5f8d35d85d3e480c855f5 | |
parent | fe98b799b532bb6d67eb5e758a9faf4edfba8705 (diff) |
irc::string assign(std::string&)
std::string assign(irc::string&)
soooo:
irc::string foo = assign(my_std_string);
:p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5956 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/hashcomp.h | 3 | ||||
-rw-r--r-- | src/hashcomp.cpp | 10 |
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(); +} + |