Commit 16b06c85 authored by Shreeraj Jadhav's avatar Shreeraj Jadhav
Browse files

Fix VTKDataSetWriter::WriteDataset() overload const correctness

Compilation error (C2666) is caused by ambiguous call to overloaded function
vtkm::io::writer::VTKDataSetWriter::WriteDataSet().
One of the overloaded functions was not constant (though it is supposed to be).
This fixes compilation error in example "ParticleAdvection" when building
in Windows 7 Visual Studio 2015.
parent c94422d2
......@@ -412,7 +412,7 @@ public:
}
VTKM_CONT
void WriteDataSet(vtkm::cont::DataSet dataSet, const std::string& cellSetName)
void WriteDataSet(vtkm::cont::DataSet dataSet, const std::string& cellSetName) const
{
this->WriteDataSet(dataSet, dataSet.GetCellSetIndex(cellSetName));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment