make_pair error in VTK/Core/Rendering
Problem
While compiling ParaView5.3 including VTK, I would get the following error when compiling with composer_xe_2013_sp1.1.106 64-bit
, and mvapich2-1.9-intel
:
VTK/Rendering/Core/vtkMapArrayValues.cxx(64): error: no instance of function template "std::make_pair" matches the argument list
argument types are: (char *, int)
this->Map->insert(std::make_pair< vtkVariant, vtkVariant >(from, to));
VTK/Rendering/Core/vtkMapArrayValues.cxx(71): error: no instance of function template "std::make_pair" matches the argument list
argument types are: (int, int)
this->Map->insert(std::make_pair< vtkVariant, vtkVariant >(from, to));
VTK/Rendering/Core/vtkMapArrayValues.cxx(78): error: no instance of function template "std::make_pair" matches the argument list
argument types are: (int, char *)
this->Map->insert(std::make_pair< vtkVariant, vtkVariant >(from, to));
VTK/Rendering/Core/vtkMapArrayValues.cxx(85): error: no instance of function template "std::make_pair" matches the argument list
argument types are: (char *, char *)
this->Map->insert(std::make_pair< vtkVariant, vtkVariant >(from, to));
Solution
Replacing std::make_pair< vtkVariant, vtkVariant >(from, to)
with std::make_pair(from, to)
seems to solve the problem. I have not done a thorough test to see if the issue is completely resolved or not.