[vtk-developers] smart pointer & type checking
tshead at sandia.gov
Tue Mar 18 18:43:14 EDT 2008
On 3/18/08 3:56 PM, "clinton at elemtech.com" <clinton at elemtech.com> wrote:
> So why does this even compile? I'd prefer to get a compile error.
> vtkSmartPointer<vtkPolyData> MyPolyData =
Amazingly spooky ... I just got bitten by this a few minutes ago! Not only
is it not a compile error, it isn't a runtime error either ...
Timothy M. Shead
Sandia National Laboratories
Scalable Analytics & Visualization
More information about the vtk-developers