[vtk-developers] vtkNew compile error

Brad King brad.king at kitware.com
Mon Feb 1 10:53:19 EST 2010


Bill Lorensen wrote:
> I think vtkNew would be a good spot to use std::ostream.

I started looking into that and it opens a small can of worms.
In vtkIOStream.h we do several things:

(1) Support the VTK_USE_ANSI_STDLIB option.
Now that VS6 is gone do we need this option anymore?

(2) Reduces the MSVC warning level for the stream headers.
We do not want to do this everyplace we include <ostream>.

(3) Provide streaming operators for "long long" if the native
compiler does not provide them.  Do all our compilers provide
this now?

While the above issues are worth discussion for VTK as a whole,
I'd rather not deal with them for introduction of vtkNew<>.
Let's just use #include "vtkIOStream.h" for now.

-Brad



More information about the vtk-developers mailing list