Compiler Warning (level 4) C4510
'class' : default constructor could not be generated
The compiler can't generate a default constructor for the specified class, which has no user-defined constructors. Objects of this type can't be created.
There are several situations that prevent the compiler from generating a default constructor, including:
A
const
data member.A data member that's a reference.
To fix this issue, create a user-defined default constructor for the class that initializes these members.
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ