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.
This commit is contained in:
Michael Carlberg 2017-01-09 20:48:53 +01:00
parent 66131c807f
commit 704efe05d2

View File

@ -81,7 +81,7 @@ class fd_stream : public StreamType {
using type = fd_stream<StreamType>; using type = fd_stream<StreamType>;
template <typename... Args> template <typename... Args>
explicit fd_stream(Args&&... args) : m_buf(forward<Args>(args)...) { explicit fd_stream(Args&&... args) : StreamType(nullptr), m_buf(forward<Args>(args)...) {
StreamType::rdbuf(&m_buf); StreamType::rdbuf(&m_buf);
} }