From 33530c338c1daaed0a48f8e3c9ccb21ec9ced49c Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 11 Dec 2006 23:56:22 +0000 Subject: 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 --- include/hashcomp.h | 3 +++ src/hashcomp.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+) 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(); +} + -- cgit v1.2.3