[ROOT] Why double cast with TDirectory::Get?

From: David Faden (dfaden@iastate.edu)
Date: Sat Aug 03 2002 - 01:18:29 MEST


Hi,
   Why must one first cast the result of TDirectory::Get(const char*) to 
void* before casting to the desired type if the desired type doesn't 
derive directly from TObject? (I'm looking at the comment for 
http://root.cern.ch/root/html/TDirectory.html#TDirectory:Get )
   Thank you.

David



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