[vtk-developers] Const correctness for string methods

Lorensen, William E (Research) lorensen at crd.ge.com
Mon Jan 19 13:24:30 EST 2004


I don't think you can overload based on return value.

-----Original Message-----
From: David Thompson [mailto:dcthomp at sandia.gov]
Sent: Monday, January 19, 2004 12:29 PM
To: Ken Martin
Cc: 'Andy Cedilnik'; 'vtk-developers'
Subject: RE: [vtk-developers] Const correctness for string methods


> Andy only change the Set methods. Changing the Get methods will cause all
> sorts of problems in user's code (and VTK itself) for no real benefit.
Why not have the Get macros overloaded (declare a const and a non-const
version)? Unless there are compilers that have trouble with the
overloading (shouldn't be any nowadays) then I don't see how this could
cause problems?

		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