หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
obsolete C++ constructor initialization syntax
Remarks
In a new-style initialization list for a constructor, you must explicitly name each direct base class, even if it is the only base class.
Example
The following example generates C2351:
// C2351.cpp
// compile with: /c
class B {
public:
B() : () {} // C2351
B() {} // OK
};