[vtk-developers] Dashboard
Brad King
brad.king at kitware.com
Mon Dec 17 11:13:58 EST 2001
> Sorry, this was my problem. I thought I had checked this on our SGI
> compiler before checking it in, but I apparently didn't. Now fixed.
> This also valid:
>
> (VTK_TT) 0
>
> rather than reinterpret_cast<VTK_TT*>
Actually, that is not valid. If you want a C-style cast, it should be
(VTK_TT*) 0
However, C-style casts are deprecated in C++, and should not be used in
new code. Since it is valid to create a NULL pointer to any type, the best
solution is actually
static_cast<VTK_TT*>(0)
-Brad
More information about the vtk-developers
mailing list