From ae5a1b8fbee47e42ea1b40247bb5524c7cf5ce3a Mon Sep 17 00:00:00 2001 From: Martijn Versteegh Date: Wed, 28 Nov 2018 15:42:49 +0100 Subject: [PATCH] Fix Clang compilation. Apparently ofstream.open() only takes a char const * and not a std::string in Clang++; --- TileGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TileGenerator.cpp b/TileGenerator.cpp index a81025c..bb374e4 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -278,7 +278,7 @@ void TileGenerator::generate(const std::string &input, const std::string &output mfn << "metadata_" << output << ".txt"; std::ofstream mf; - mf.open(mfn.str()); + mf.open(mfn.str().c_str()); mf << "BaseName: " << output << std::endl; mf << "NumTiles: " << m_numTilesX << " " << m_numTilesY << std::endl;