diff --git a/tests/utils.h b/tests/utils.h index 8be65ac0..871a8e50 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -39,7 +39,7 @@ inline string copyFile(const string &filename, const string &ext) #endif string sourceFileName = testFilePath(filename) + ext; - ifstream source(sourceFileName, std::ios::binary); + ifstream source(sourceFileName.c_str(), std::ios::binary); ofstream destination(testFileName, std::ios::binary); destination << source.rdbuf(); return string(testFileName);