Re: [ROOT] TBuffer::operator >>(Bool_t &)

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Jan 23 2002 - 15:50:34 MET


Hi Alan,

  Bool_t is not bool. Try replacing bool by Bool_t. In the near
future we will support bool also as a basic type.

Cheers, Fons.



On Wed, 2002-01-23 at 15:33, Alan Barr wrote:
> 
> Dear rooters,
> 
> does anyone know why is there no method TBuffer::operator >>(Bool_t &) ?
> 
> My code fails to compile because my object's Streamer looks for such a
> method. If I replace the bool's by int's it seems to be quite happy.
> 
> Alan
> 
> TBRunCint.cc: In method `void TBRun::Streamer(class TBuffer &)':
> TBRunCint.cc:34: ambiguous overload for `TBuffer & >> bool &'
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:280:
> candidates are: TBuffer::operator >>(Char_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:342:
> TBuffer::operator >>(UChar_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:287:
> TBuffer::operator >>(Short_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:345:
> TBuffer::operator >>(UShort_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:294:
> TBuffer::operator >>(Int_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:348:
> TBuffer::operator >>(UInt_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:185:
> TBuffer::operator >>(Long_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:351:
> TBuffer::operator >>(ULong_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:308:
> TBuffer::operator >>(Float_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TBuffer.h:315:
> TBuffer::operator >>(Double_t &) <near match>
> /afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/include/TString.h:357:
> operator >>(TBuffer &, TString &) <near match>
> 
-- 
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:39 MET