[vtk-developers] Const correctness for string methods

David Thompson dcthomp at sandia.gov
Mon Jan 19 13:36:17 EST 2004


> 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




More information about the vtk-developers mailing list