summaryrefslogtreecommitdiff
path: root/binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'binary.h')
-rw-r--r--binary.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binary.h b/binary.h
index 0a8e1520..852dfe56 100644
--- a/binary.h
+++ b/binary.h
@@ -205,6 +205,9 @@ inline string read_string(const char *& data) {
return temp;
}
+void read_string(std::istream& in, optional<string>& str);
+void read_string(const char *& data, optional<string>& str);
+
template <typename T>
inline void write_number_nocheck(std::ostream& out, T num) {
@@ -262,6 +265,7 @@ void write_long(std::ostream& out, T num)
}
void write_string(std::ostream& out, const string& str);
+void write_string(std::ostream& out, const optional<string>& str);
template <typename T>
inline void write_object(std::ostream& out, const T& journal) {