Re: [ROOT] more on const qualifiers...

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Feb 21 2002 - 15:05:35 MET


Yes, because both SetterMethod() and GetterMethod() change the state of
the object.

Cheers, Fons.



On Thu, 2002-02-21 at 14:54, Thomas Bretz wrote:
> Hi rooters,
> 
> is there a reason for
> TDataMember::GetterMethod() not to be declared as const?
> and the same for
> TMethodCall::Execute
> 
> Regards,
> Thomas.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET