GNU sizeof, how odd
Apparently, GCC doesn’t like the following second version of this simple piece of code:
size_t sizeInt = sizeof(int); // Compiles on GCC, ICC and VS. size_t sizeInt = sizeof((int)); // Compiles on ICC and VS.
GCC complains:
expected primary-expression before ‘int’
Sigh.
Comments (0)
Trackbacks (0)
Leave a comment
Trackback

Recent Comments