--- deliantra/server/include/shstr.h 2007/02/05 02:07:40 1.12 +++ deliantra/server/include/shstr.h 2007/04/23 16:07:00 1.14 @@ -1,6 +1,8 @@ #ifndef SHSTR_H__ #define SHSTR_H__ +#include + #include "util.h" extern int buf_overflow (const char *buf1, const char *buf2, int bufsize); @@ -113,6 +115,12 @@ return a != b; } +static std::ostream &operator <<(std::ostream &o, const shstr &sh) +{ + o.write (sh.s, sh.length ()); + return o; +} + // only good for mass comparisons to shstr objects struct shstr_cmp {