[ROOT] dynamic_cast CInt problem with TObject?

From: Pierre-Luc Drouin (pldrouin@physics.carleton.ca)
Date: Mon Jul 29 2002 - 19:11:21 MEST


Hello,

Is there a problem with dynamic_cast in CInt?

>From ROOT interpreter:

TObject* a=new TObject;                
root [1] cout << dynamic_cast<TH1F*>(a) << "\n";
0x87d2158

When I compile this code with g++, I get a NULL value for the dynamic_cast
(like it is expected), but it's not NULL with CInt.

Pierre-Luc Drouin
SNO, Carleton University



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