From 68381e69d94735010df986b22c8e758981b50995 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 19 Nov 2009 01:52:52 +0000 Subject: 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 --- include/hashcomp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 */ -- cgit