Problem with template & Inherits from

I have made a templated class (Variable) and stores instances of it in a TList. When retriving data from the list I need to check the type of the object with InheritsFrom(), but it doesn’t work as I expect…

TList* list = new TList(); 
list->Add(new Variable<Double_t>());

list->At(0)->InheritsFrom("Variable<Double_t>"); // FALSE, but should work?
list->At(0)->InheritsFrom("Variable<double>");    //TRUE, ok i guess?

Did I make a mistake or does root change Double_t to double?


Could try with ROOT code in CVS. We made several improvement related to the resolution of typedefs.