[vtk-developers] Re: Const arrays in vtkSetVector*Macro ( Was : the hints file )

Lorensen, William E (Research) lorensen at crd.ge.com
Mon Nov 25 11:33:45 EST 2002


This can be very invasive. If it will not break existing vtk code (outside of the vtk web site) I
don't see a problem. Otherwise, I'm already having problems keeping up with API changes.

Bill

-----Original Message-----
From: dean.inglis at on.aibn.com [mailto:dean.inglis at on.aibn.com]
Sent: Monday, November 25, 2002 9:05 AM
To: Andy Cedilnik
Cc: vtk-developers at public.kitware.com
Subject: [vtk-developers] Re: Const arrays in vtkSetVector*Macro ( Was:
the hints file )


Hi Andy,

IMHO, const correctness sounds good to me ...

Dean

> 
> From: Andy Cedilnik <andy.cedilnik at kitware.com>
> Date: 2002/11/25 Mon AM 07:48:42 GMT-05:00
> Subject: Const arrays in vtkSetVector*Macro ( Was: the hints file )
> 
> Hi All,
> 
> That said, could we modify all the 
> virtual void SetSomething(type*) 
> to 
> virtual void SetSomething(const type*)?
> 
> I added standard colors to Common/Testing/Cxx and the type had to be
> static float color[3] instead of static const float color[3].
> 
> So, comments?
> 
> 				Andy
> 


_______________________________________________
vtk-developers mailing list
vtk-developers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtk-developers



More information about the vtk-developers mailing list