Error with vtkCSVWriter.cxx in ParaView 5.7.0-RC2

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>

Thanks,

Joe

@Andy_Bauer @utkarsh.ayachit

fixed here: https://gitlab.kitware.com/paraview/paraview/merge_requests/3510

The patch did not fix the error sadly:

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

I am not sure you got the latest patch…attached…there’s no this->Stream = ofstream(...) in the code anymore.

https://gitlab.kitware.com/paraview/paraview/commit/a0db130f6f156087012aadba8675447ab7242aa6.diff

Utkarsh,

You were correct, I got the new version of the patch and now it is working.

Thanks for your quick reply,

Joe