]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Avoid use of gold hammer
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 19 Jan 2018 07:31:52 +0000 (08:31 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 19 Jan 2018 07:31:52 +0000 (08:31 +0100)
src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx

index 4c6cd3ef6769f575c373ba5f638150c17d63eff3..3abe4dee9e40c38a04b9121a646f5229f834991d 100644 (file)
@@ -212,8 +212,7 @@ int vtkMEDWriter::RequestUpdateExtent(vtkInformation* vtkNotUsed(request), vtkIn
   return 1;
 }
 
-template<class T>
-void ExceptionDisplayer(vtkMEDWriter *self, const std::string& fileName, T& e)
+void ExceptionDisplayer(vtkMEDWriter *self, const std::string& fileName, std::exception& e)
 {
   std::ostringstream oss;
   oss << "Exception has been thrown in vtkMEDWriter::RequestData : During writing of \"" << fileName << "\", the following exception has been thrown : "<< e.what() << std::endl;