[vtkusers] VTK8.2RC2: vtkMath.h misses #include <algorithm> for C++17
Sean McBride
sean at rogue-research.com
Fri Jan 11 13:06:35 EST 2019
On Fri, 11 Jan 2019 11:03:28 -0700, lp said:
>In VTK8.2 the function vtkMath::ClampValue in vtkMath.h uses the standard
>library function std::clamp, if a C++17 compiler is found. But the include
>that contains std::clamp (<algorithm>) is not listed in vtkMath.h.
>This leads to a compile error, when using VTK8.2RC2 in a project that is
>compiled with C++17.
>
>From my understanding this could be fixed by adding
>
>#include <algorithm>
>
>at the beginning of vtkMath.h inside an #if statement that checks for C++17.
That's probably my fault... I'll make a patch...
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list