The VC++ 2010 compiler fails to properly evaluate the alignment of dependent types in template argument lists when these types have not been 'in use' before being passed to __alignof().Always evaluating sizeof() with the types in question right before evaluating __alignof() works around this issue, yet, with the introduction of alignof to C++0x, this issue might become more relevant in the future.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...