Skip to content

Commit 4450cdb

Browse files
committed
cstrans-df-run: make the code build with gcc-4.8.5
1 parent 882d26f commit 4450cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cstrans-df-run.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ bool transformInPlace(DockerFileTransformer &dft, const std::string &fileName)
250250
using namespace boost::filesystem;
251251

252252
// open input file and temporary output file
253-
std::fstream fin(fileName, std::ios::in);
253+
std::fstream fin(fileName.c_str(), std::ios::in);
254254
path tmpFileName = unique_path();
255-
std::fstream fout(tmpFileName.native(), std::ios::out);
255+
std::fstream fout(tmpFileName.native().c_str(), std::ios::out);
256256

257257
// transform fin -> fout and close the streams
258258
const bool ok = dft.transform(fin, fout);

0 commit comments

Comments
 (0)