[vtkusers] VTK and the STL

Berk Geveci berk.geveci at kitware.com
Mon Sep 14 09:54:21 EDT 2009


Hi Fred,

Cc'ing vtk-developers. I suggest using #include <vtkstd/vector.h> or
#include <vtksys/stl/vector.h>. Directly including the the STL headers
is not always portable. As for the difference between these two, there
really isn't any. One comes from the system library, kwsys, included
by VTK, the other one is VTK's own implemented before kwsys.

-berk

On Mon, Sep 14, 2009 at 9:23 AM, Fred Fred <stan1313 at hotmail.fr> wrote:
> It seems that there are 3 different ways of using STL objects with VTK:
>   - #include <vtkstd/vector.h> and then declare it as vtkstd::vector<..> for
> instance,
>   - #include <vtksys/stl/vector.h> and then declare it as
> vtksys_stl::vector<..> for instance,
>   - #include <vector.h> and then declare it as vector<..> for instance, ie
> as within any application.
> I wonder which are the differences/advantages/drawbacks/reasons between the
> 3 approaches, could anyone tell me some hints?
>
>
>
>
> ________________________________
> Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici !
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list