diff options
-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 */ |