[ROOT] Can "mutable" be used in persistent classes?

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Mon Aug 20 2001 - 15:35:58 MEST


Hi ROOT'ers, 

I short question: 

  Can "mutable" be used in persistent classes? 

Searching the web pages gives: 

   TParticle - source file
   TListIter - source file
   TList - source file
   TTreeFormula - source file

and they all say something like: 

    //cast const away, fCache should be mutable 

or similar.  So what I want to know is: Is this a ROOT/CINT limitation
or is it a compiler limitation? 

I'm using CVS head as of ~1 week ago on a Redhat 6.2 machine (that is
GCC 2.91.66).  

Yours, 

Christian Holm Christensen -------------------------------------------
Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
         DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
         Denmark                             Office: (+45) 353  25 305 
Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET