หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'identifier' : member function or nested class in constructor initializer list
Remarks
Member functions or local classes in the constructor initializer list cannot be initialized.
Example
The following example generates C2436:
// C2436.cpp
struct S{
int f();
struct Inner{
int i;
};
S():f(10), Inner(0){} // C2436
};