The ROOT System. http://root.cern.ch
- Brun et al, R. 1995 Brun, N. Buncic, F. Rademakers
Since C++ is a statically typed language, operations concerning types have to explicitly precise types at compile-time unless the programmer supplies some ’system’ that simulates type variables at run-time. This paper presents such a system which implements type variables (typeids), generalized pointer casting and object construction from run-time supplied typeids. A simple method to add these facilities to any C++ class hierarchy is presented.