[vtk-developers] STL policy

Brad King brad.king at kitware.com
Mon Jan 20 09:17:39 EST 2003


> >     WS> 3. Use the vtkstd:: namespace to refer to STL classes and
> >     WS> functions.
> >
> >Why not plain std::?  Any specific reasons why we should not use
> >std::?  Isn't the "right" way to use STL via the std namespace?

Some compilers don't support namespace std.  In CMake, we just define
"std" as an empty macro because it is an application, but VTK is a
library.  We cannot force the definition of such a non-vtk-prefixed macro
upon user code.  Instead, we use "vtkstd" which is either defined to "std"
or empty depending on the compiler.

-Brad




More information about the vtk-developers mailing list