diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-19 01:52:52 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-19 01:52:52 +0000 |
commit | 68381e69d94735010df986b22c8e758981b50995 (patch) | |
tree | ec9163d17157007a9897c4da8fe243dcdfe1efb6 /include/hashcomp.h | |
parent | aa421772e0f117f63267d2356575563bf90b543d (diff) |
Fix compile errors on some compilers that did not like our overloaded operators << on std::ostream
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2659 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r-- | include/hashcomp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index df382090b..5ffb663ad 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -189,7 +189,7 @@ namespace ci /** Operator << for irc::string */ -inline std::ostream &operator<<(std::ostream &os, const irc::string &str) { return os << str.c_str(); } +inline std::ostream &operator<<(std::ostream &os, const irc::string &str) { return os << std::string(str.c_str()); } /** Operator >> for irc::string */ @@ -203,7 +203,7 @@ inline std::istream &operator>>(std::istream &is, irc::string &str) /** Operator << for ci::string */ -inline std::ostream &operator<<(std::ostream &os, const ci::string &str) { return os << str.c_str(); } +inline std::ostream &operator<<(std::ostream &os, const ci::string &str) { return os << std::string(str.c_str()); } /** Operator >> for ci::string */ |