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

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Aug 20 2001 - 15:46:41 MEST


Mutable can be used in persistent classes. We did not use it in our code since
it is not (yet) portable to all compilers we support. Please try it and let
us know.

Cheers, Fons.



Christian Holm Christensen wrote:
> 
> 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

-- 
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 : Tue Jan 01 2002 - 17:50:58 MET