I am getting an error in vtkCSVWriter.cxx when using gcc 4.8.5 to build ParaView 5.7.0-RC2
This seems to have been introduced by the change last week to fix issue #19224 (Save Data, csv file,
from streamtracer is bad)
Build_5.7.0-RC2_mesa/superbuild/paraview/src/ParaViewCore/VTKExtensions/Default/vtkCSVWriter.cxx:203:18: error: use of deleted function ‘std::basic_ofstream& std::basic_ofstream::operator=(const std::basic_ofstream&)’
this->Stream = ofstream(filename, ios::out);
/usr/include/c++/4.8.5/fstream:599:11: note: ‘std::basic_ofstream& std::basic_ofstream::operator=(const std::basic_ofstream&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_ofstream : public basic_ostream<_CharT,_Traits>
Here is more detail on the errors I get even with the changes made by Utkarsh applied:
/home/joeh/PV/Build_5.7.0-RC2_mesa/superbuild/paraview/src/ParaViewCore/VTKExtensions/Default/vtkCSVWriter.cxx: In member function ‘int vtkCSVWriter::CSVFile::Open(const char*)’:
/home/joeh/PV/Build_5.7.0-RC2_mesa/superbuild/paraview/src/ParaViewCore/VTKExtensions/Default/vtkCSVWriter.cxx:204:18: error: use of deleted function ‘std::basic_ofstream& std::basic_ofstream::operator=(const std::basic_ofstream&)’
this->Stream = ofstream(filename, ios::out);
^
Edited for brevity