[ROOT] Const correctness

From: George A. Heintzelman (gah@bnl.gov)
Date: Thu Oct 26 2000 - 17:54:52 MEST


Root guys, 

Is there any plan in the works for making the basic root interfaces 
more const correct? The fact that several key virtual functions in 
TObject are not const correct is frequently disconcerting to me. A 
non-comprehensive list:

Copy(), Compare(), Clone(), Hash(), IsEqual(), Print()

should all be const and/or take const arguments and do not.

I am getting tired of having to use const_cast in my own const correct 
functions which call these and others, and hoping that there is some 
hope for the future...

The only trouble, of course, is that this change to the interface will 
require changes to the users code which override the changed functions, 
though there might be ways to avoid that. Still, this is not a small 
thing, so I would not want to see it in a patchlevel upgrade.

George Heintzelman
gah@bnl.gov



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET