Warn on vtkX::New
Add a new private NewImpl
method which is New
now. The non-warning way to do this would be to use vtkSmartPointer
and vtkNew
(which would be friend
classes via vtkTypeMacro
. Then New
can be deprecated. This should help VTK be more exception safe by having automatic incref/decref tied to C++ scopes.