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:
parent
66131c807f
commit
704efe05d2
@ -81,7 +81,7 @@ class fd_stream : public StreamType {
|
||||
using type = fd_stream<StreamType>;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user