Compiler Error C2344
align(#) : alignment must be power of two
When using the align keyword, the value you pass must be a power of two.
For example, the following code generates C2344 because 3 is not a power of two:
// C2344.cpp
// compile with: /c
__declspec(align(3)) int a; // C2344
__declspec(align(4)) int b; // OK
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for