[vtkusers] vtkDenseArray reference counting?
Jeff Baumes
jeff.baumes at kitware.com
Fri Nov 20 09:36:34 EST 2009
> So for the time being, If I want to have this as a member variable
>
> vtkSmartPointer<vtkDenseArray<vtkSmartPointer<vtkRay> > > array;
>
> what should I do? (since I can't use vtkSmartPointer as a member
> variable since it is an actual object, not a pointer)
>
As I think Marcus stated in an earlier thread, you need to include
vtkSmartPointer.h for this to work. Like you say, my template forward
declaration stuff only works for declaring a *pointer* to a templated
type, not the type itself.
Jeff
More information about the vtkusers
mailing list