From a942ff9ea9b7f6b73b21fd659394d1bdf38e0baa Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sat, 14 Jan 2017 16:22:46 +0100 Subject: [PATCH] Fixed compilation on older clang (3.6) --- src/Serializer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializer.h b/src/Serializer.h index 6f7da30..d37a5da 100644 --- a/src/Serializer.h +++ b/src/Serializer.h @@ -24,7 +24,7 @@ struct WriteSerializer { } void Open(const char* filename) { - stream = std::ofstream(filename, std::ofstream::trunc); + stream.open(filename, std::ofstream::trunc); } void Close() {