Created
March 29, 2010 21:19
-
-
Save mwbrooks/348420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <typeinfo> | |
using namespace std; | |
int myNumber = 5; | |
const char *name1 = typeid(int).name(); // i on gcc, int on VSC++ | |
const char *name2 = typeid(myNumber).name(); // i on gcc, int on VSC++ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment