From 6aaf85baa65a85644026188213d852dd8f211b1b Mon Sep 17 00:00:00 2001 From: Kenneth Moreland Date: Thu, 17 Mar 2016 08:53:35 -0600 Subject: [PATCH] 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. --- vtkm/io/writer/VTKDataSetWriter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtkm/io/writer/VTKDataSetWriter.h b/vtkm/io/writer/VTKDataSetWriter.h index c3ac6a3c6..4d86abd53 100644 --- a/vtkm/io/writer/VTKDataSetWriter.h +++ b/vtkm/io/writer/VTKDataSetWriter.h @@ -410,7 +410,7 @@ public: try { - std::ofstream fileStream(this->FileName, std::fstream::trunc); + std::ofstream fileStream(this->FileName.c_str(), std::fstream::trunc); this->Write(fileStream, dataSet, cellSetIndex); fileStream.close(); }