[vtk-developers] vtkNew compile error

Bill Lorensen bill.lorensen at gmail.com
Mon Feb 1 10:59:19 EST 2010


Sounds good to me. We can address those stream issues at a later date
if need be.

On Mon, Feb 1, 2010 at 10:53 AM, Brad King <brad.king at kitware.com> wrote:
> 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