From ca549070d974b45ae586e10b74acc6e390741ae9 Mon Sep 17 00:00:00 2001 From: om Date: Fri, 3 Feb 2006 22:40:10 +0000 Subject: Add operators >> and << for irc::string and i/ostreams. m_cban utilises this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3066 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/hashcomp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/hashcomp.h b/include/hashcomp.h index 8e077a732..3aa838da2 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -129,4 +129,11 @@ namespace irc typedef basic_string > string; } +/* Define operators for using >> and << with irc::string to an ostream on an istream. */ +/* This was endless fun. No. Really. */ +/* It was also the first core change Ommeh made, if anyone cares */ + +std::ostream& operator<<(std::ostream &os, const irc::string &str); +std::istream& operator>>(std::istream &is, irc::string &str); + #endif -- cgit v1.2.3