[vtk-developers] Const correctness for string methods
Bill Lorensen
wlorens1 at nycap.rr.com
Mon Jan 19 13:46:41 EST 2004
Tricky. I wonder of it's portable.
Bill
At 01:36 PM 1/19/2004, David Thompson wrote:
> > I don't think you can overload based on return value.
>You cannot, but the const-ness of the member function CAN be overloaded.
>For instance,
>
> double* GetPoint( vtkIdType );
> const double* GetPoint( vtkIdType ) const;
>
>will work because the const at the end is treated as extra type
>information, just like argument type is.
>
> David
>
>_______________________________________________
>vtk-developers mailing list
>vtk-developers at vtk.org
>http://www.vtk.org/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list