diff --git a/src/fs/io/BufferedOutputStream.hxx b/src/fs/io/BufferedOutputStream.hxx index 3aa6df4d2..62ecb60ac 100644 --- a/src/fs/io/BufferedOutputStream.hxx +++ b/src/fs/io/BufferedOutputStream.hxx @@ -58,8 +58,13 @@ public: void Write(const void *data, std::size_t size); + template + void WriteT(const T &value) { + Write(&value, sizeof(value)); + } + void Write(const char &ch) { - Write(&ch, sizeof(ch)); + WriteT(ch); } void Write(const char *p);