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

From: Victor Perevoztchikov (perev@bnl.gov)
Date: Mon Aug 20 2001 - 17:18:48 MEST


Hi Holm,
>   Can "mutable" be used in persistent classes?
not all compilers yet support mutable, that is why ROOT avoid it.
But if your computer supports it, you can use it in ROOT.
The only limitation that your application will not work on some compilers.

Victor


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

-- 
Victor M. Perevoztchikov   perev@bnl.gov  perev@vxcern.cern.ch       
Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000
tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690



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