Fix Clang compilation.

Apparently ofstream.open() only takes a char const * and not a std::string in Clang++;
This commit is contained in:
Martijn Versteegh 2018-11-28 15:42:49 +01:00
parent 4752832fe8
commit ae5a1b8fbe

View File

@ -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;