diff --git a/src/proto/protoio.cc b/src/proto/protoio.cc index ae1e2d8c23..76364794f2 100644 --- a/src/proto/protoio.cc +++ b/src/proto/protoio.cc @@ -91,7 +91,7 @@ ProtoOutputStream::write(const Message& msg) } ProtoInputStream::ProtoInputStream(const string& filename) : - fileStream(filename, ios::in | ios::binary), fileName(filename), + fileStream(filename.c_str(), ios::in | ios::binary), fileName(filename), useGzip(false), zeroCopyStream(NULL), gzipStream(NULL), codedStream(NULL) {