Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
alignment specifier is ignored on enum
Remarks
Use of the alignment specifiers on enum isn't allowed. This pattern includes the use of the align __declspec modifier.
Example
The following example generates C4329:
// C4329.cpp
// compile with: /W1 /LD
enum __declspec(align(256)) TestEnum { // C4329
TESTVAL1,
TESTVAL2,
TESTVAL3
};
__declspec(align(256)) enum TestEnum1;