aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 24dd8328..73f5f1dd 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -1,6 +1,8 @@
#ifndef STRBUF_H
#define STRBUF_H
+#include <iostream>
+
#include <stdlib.h>
#include "macro.h"
@@ -33,8 +35,11 @@ struct strbuf {
{ return ! (*this == other); }
bool operator!=(const char* other)
{ return ! (*this == other); }
+
};
+std::ostream& operator<<(std::ostream&, strbuf&);
+
/*
* Init strbuf to size of 0
* Doesnt't call malloc.