Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 585 Bytes

compiler-error-c2344.md

File metadata and controls

22 lines (18 loc) · 585 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2344
Compiler Error C2344
11/04/2016
C2344
C2344
a84c7b37-c84e-4345-8691-c23abb2dc193

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