A General-Purpose Run-Time Type Information System for C++

Abstract

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.

7 Figures and Tables

Cite this paper

@inproceedings{Telea1997AGR, title={A General-Purpose Run-Time Type Information System for C++}, author={Alexandru Telea}, year={1997} }