[ROOT] method Compare

From: GENTIT Francois-Xavier DAPNIA (GENTIT@dapnia.cea.fr)
Date: Thu Aug 22 2002 - 09:01:48 MEST


  Hello writers of the ROOT user guide,
  The example given on page 303 of the manual for the method "Compare" and
"IsEqual" correspond to a very old version of ROOT and do not work, because
the "const" are missing. This results in a difficult to find bug, the
compiler accepts this version without "const", but they are never called and
"Sort" on the collection does nothing. It took me some time to find why.
Thanks for correcting it.

François-Xavier Gentit
DAPNIA/SPP CEA Saclay
http://gentit.home.cern.ch/gentit/



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