diff --git a/include/dmlc/io.h b/include/dmlc/io.h index 2d12a1157..bd9e127a0 100644 --- a/include/dmlc/io.h +++ b/include/dmlc/io.h @@ -150,7 +150,7 @@ class ostream : public std::basic_ostream { */ explicit ostream(Stream *stream, size_t buffer_size = 1 << 10) - : basic_ostream(NULL), buf_(buffer_size) { + : std::basic_ostream(NULL), buf_(buffer_size) { this->set_stream(stream); } // explictly synchronize the buffer @@ -213,7 +213,7 @@ class istream : public std::basic_istream { */ explicit istream(Stream *stream, size_t buffer_size = 1 << 10) - : basic_istream(NULL), buf_(buffer_size) { + : std::basic_istream(NULL), buf_(buffer_size) { this->set_stream(stream); } virtual ~istream() {}