typeid and the type_info object
My instructor started using the typeid() function and, from what I've found out from google searches, the type_info object. my question is: how portable is this and is it a windows thing?
if it's not portable, is there a better way? I'm thinking about something in the base class (char or int or something) that can be changed depending on what class is derived from it...
These ARE part of the language standard.
Yeah, typeid, type_info, and the <typeinfo> header are all part of the standard.