[vtkusers] Forward declaring vtkSmartPointer

David Doria daviddoria+vtk at gmail.com
Mon Nov 16 14:10:39 EST 2009


I thought Jeff had resolved this the other day, but it is cropping up again.
(here is an example:
http://www.rpi.edu/~doriad/VTK_List/ForwardDeclareSmartPointer/ )

The thought was that we could correctly forward declare a template class:

template <typename T> class vtkSmartPointer;

so that it could be used to define a member variable:

private:
vtkSmartPointer<vtkTransform> Transform;

However, I'm getting:
error: field 'Transform' has incomplete type

Any idea why this would be?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091116/373deb66/attachment.htm>


More information about the vtkusers mailing list