Is this ok for you: #include <typeinfo> #include <iostream>
... // having any ptr around X * ptr; ... cout << "type is " << typeid(*ptr).name() << endl; ... Or are you looking for something different? RU, Andreas _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus