mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 10:35:42 +00:00
Fix compile error with ofstream.
Not all STD implementations allow constructing an ofstream with a filename in a std::string. Get the c string instead.
This commit is contained in:
parent
e863ee991a
commit
6aaf85baa6
@ -410,7 +410,7 @@ public:
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
std::ofstream fileStream(this->FileName, std::fstream::trunc);
|
std::ofstream fileStream(this->FileName.c_str(), std::fstream::trunc);
|
||||||
this->Write(fileStream, dataSet, cellSetIndex);
|
this->Write(fileStream, dataSet, cellSetIndex);
|
||||||
fileStream.close();
|
fileStream.close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user