[vtkusers] Forward declaring vtkSmartPointer

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


>
> declaration to work. You have declared a local instance of
> vtkSmartPointer<vtkTransform> and so the full definition is required.
> Forward
> declarations can only be used when you are using pointers or references.
>
> The smart pointer becomes fairly useless when you need to use a pointer to
> it
> though, as you then have to destroy it yourself and so you may as well use
> a
> pointer to the object.
>
> Marcus
>
>
So the solution is not to use smart pointers for member variables?

Thanks,

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


More information about the vtkusers mailing list