From 704efe05d224dc8e45b1bdc56dfedda74ac553f4 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 9 Jan 2017 20:48:53 +0100 Subject: [PATCH] fix(file_util): Explicit initialization of stream base Clang 3.8 emits a compiler warning due to the deleted default constructors of the base class. --- include/utils/file.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils/file.hpp b/include/utils/file.hpp index 2602c266..4318cf5b 100644 --- a/include/utils/file.hpp +++ b/include/utils/file.hpp @@ -81,7 +81,7 @@ class fd_stream : public StreamType { using type = fd_stream; template - explicit fd_stream(Args&&... args) : m_buf(forward(args)...) { + explicit fd_stream(Args&&... args) : StreamType(nullptr), m_buf(forward(args)...) { StreamType::rdbuf(&m_buf); }