หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
obsolete declaration style: please use 'new_syntax' instead
Remarks
In the current release of Visual C++, the explicit constructor specialization is still supported, but it may not be supported in a future release.
Example
The following example generates C4812:
// C4812.cpp
// compile with: /W1 /c
template <class T>
class MyClass;
template<class T>
class MyClass<T*> {
MyClass();
};
template<class T>
MyClass<T*>::MyClass<T*>() {} // C4812
// try the following line instead
// MyClass<T*>::MyClass() {}