Author: | erikc |
---|---|
Mode: | c++ |
Date: | Sat, 17 Apr 2010 09:20:12 |
__declspec(align(16)) char foo; static_assert(__alignof(decltype(foo)) != __alignof(foo), "Alignment isn't part of type."); typedef __declspec(align(16)) char aligned_char; aligned_char bar; static_assert(__alignof(decltype(bar)) == __alignof(bar), "Alignment is part of type");