KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm currently trying to debug a piece of simple code and wish to see how a specific variable type changes during the program. I'm using the typeinfo header file so I can utilise typeid.name(). I'm aware that typeid.name() is compiler specific thus the output might not be particularly helpful or standard. I'm using GCC but I cannot find a list of the potential output despite searching, assuming a list of typeid output symbols exist. I don't want to do any sort of casting based on the output or manipulate any kind of data, just follow its type. #include <iostream> #include <typeinfo> int main() { int a = 10; cout << typeid(int).name() << endl; } Is there a symbol list anywhere?
Tags (comma-separated)
Save Edits
Cancel