إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
constant expression is not integral
Remarks
The context requires an integer constant expression.
Example
The following example generates C2058:
// C2058.cpp
struct alignas(1.5) S {}; // C2058
int main() {
int arr[1.5]; // C2058
}
To resolve the issue, use an integer constant expression. For example, int arr[2];