Compiler Warning (level 2) C4150
deletion of pointer to incomplete type 'type'; no destructor called
The delete
operator is called to delete a type that was declared but not defined, so the compiler cannot find a destructor.
The following sample generates C4150:
// C4150.cpp
// compile with: /W2
class IncClass;
void NoDestruct( IncClass* pIncClass )
{
delete pIncClass;
} // C4150, define class to resolve
int main()
{
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for