Andreas Schallenberg <[EMAIL PROTECTED]> writes: > X * ptr; > cout << "type is " << typeid(*ptr).name() << endl;
Just a word of caution: if X doesn't have virtual functions, typeid(*ptr) will "answer" X even if "ptr" points to a subclass of X. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus