[vtk-developers] VTK C++11 compatibility

Andy Bauer andy.bauer at kitware.com
Mon Apr 2 10:40:49 EDT 2012


I'll fix the problems with vtkCellTreeLocator and vtkKdTree if no one else
has done that yet.

Andy

On Fri, Mar 30, 2012 at 5:16 PM, Sean McBride <sean at rogue-research.com>wrote:

> 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
> >kind, ex:
>
> 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:
>
> <http://open.cdash.org/viewBuildError.php?type=1&buildid=2139702>
>
> 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?
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120402/3b536621/attachment.html>


More information about the vtk-developers mailing list