[vtk-developers] VTK C++11 compatibility
sean at rogue-research.com
Fri Mar 30 17:16:42 EDT 2012
On Mon, 19 Mar 2012 19:13:09 -0400, Sean McBride said:
>So I tried to build VTK as C++11 with clang by passing the -std=c++11
>flag. There are a few dozen compiler errors, almost all of the same
With David Gobbi's help, I have fixed most of the compiler errors when building VTK as C++11, but a few remain, which currently appear as warnings here:
They could be fixed by blindly casting, but a better solution may be to change some of these floats to doubles. I'm not sure if these are deliberately float, or left over and never changed from the big float->double changes long ago. Currently, there's a bunch of double->float->double conversions. Changing said floats to doubles would require changing public API.
The classes in question are: vtkCellTreeLocator, vtkKdTree, vtkContext2D, AreaLayout and AreaRepresentation classes.
Could someone in the know take a looksie, or shall I just cast everything?
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 vtk-developers