RE: [ROOT] To create sortable objects and add them to a TSortedList

From: Axel Naumann (axel-naumann@gmx.de)
Date: Mon Nov 17 2003 - 12:36:12 MET


Hi Jose,
the compiler tells you what's wrong. A const type and a non-const type
are two different types, so your methods are never called, because they
have the "wrong" argument types. Replace the methods with

>    Bool_t IsEqual (cont TObject *obj) const
>    Int_t Compare(const TObject *obj) const

i.e. add "const" in front of TObject*.

Cheers, Axel.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET