Is 'sizeof' evaluated at compile time or run time? If it's at compile time, why doesn't this compile with VC8..?
Code:__declspec(align(sizeof(int))) struct s { char a; int b, c; };
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: Why doesn't 'sizeof' work here?Threaded View
|
Click Here to Expand Forum to Full Width |
Bookmarks