[vtkusers] Unhandled exception at the time of Unregistering	vtkSmartPointer
    David Doria 
    daviddoria at gmail.com
       
    Fri Jun  8 18:15:36 EDT 2012
    
    
  
On Fri, Jun 8, 2012 at 6:11 PM, cel02000 <cel02000 at yahoo.com> wrote:
> Dear All,
>
> I have a function whose arguments is as follows:
> *int Calc(
>        vtkSmartPointer< vtkPolyData >& ,
>        vtkSmartPointer< vtkDoubleArray >& ,
>        vtkSmartPointer< vtkDoubleArray >& ,
>        vtkSmartPointer< vtkDoubleArray >& );*
I don't think it does any good to pass a reference to a smart pointer,
or actually, even a smart pointer at all. Why not just
int Calc(
vtkPolyData* ,
vtkDoubleArray*,
vtkDoubleArray*,
vtkDoubleArray* );
David
    
    
More information about the vtkusers
mailing list