From cbbc4c7f6b4cb718cc3907b955f7ae527d2d0274 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 14 Jan 2013 10:23:56 -0500 Subject: [PATCH] scons: Address clang 3.2 compilation error This patch fixes a compilation error encountered using clang 3.2 on OSX. --- src/proto/protoio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/protoio.cc b/src/proto/protoio.cc index ae1e2d8c2..76364794f 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) { -- 2.30.2