diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 22:40:10 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 22:40:10 +0000 |
commit | ca549070d974b45ae586e10b74acc6e390741ae9 (patch) | |
tree | 4db7715a809421547ef61dea086528fc5f43cb58 /include/hashcomp.h | |
parent | 93188e6f716d77c7e2162d086e230c73c77292f8 (diff) |
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
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r-- | include/hashcomp.h | 7 |
1 files changed, 7 insertions, 0 deletions
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<char, irc_char_traits, allocator<char> > 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 |