[vtkusers] Using vtkDenseArray as a member variable

David Doria daviddoria+vtk at gmail.com
Thu Nov 12 14:15:57 EST 2009


In a VTK class, if I try to do:
...
private:
  vtkDenseArray<double> Test;

if I forward declare vtkDenseArray:
class vtkDenseArray;

I get
error: 'vtkDenseArray' is not a template

and if I include it, I get:

error: 'vtkDenseArray<T>::vtkDenseArray() [with T = double]' is protected

Is there a reason that this shouldn't work?

Thanks,

David



More information about the vtkusers mailing list