Compiler Error C2719
'parameter': formal parameter with __declspec(align('#')) won't be aligned
The align __declspec
modifier is not permitted on function parameters. Function parameter alignment is controlled by the calling convention used. For more information, see Calling Conventions.
The following sample generates C2719 and shows how to fix it:
// C2719.cpp
void func(int __declspec(align(32)) i); // C2719
// try the following line instead
// void func(int i);
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ