הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'operator delete' : first formal parameter must be 'void *', but 'param' was used
Remarks
Any user-defined operator delete function must take a first formal parameter of type void *.
Example
The following example generates C2815:
// C2815.cpp
// compile with: /c
class CMyClass {
public:
void mf1(int *a);
void operator delete(CMyClass *); // C2815
void operator delete(void *);
};