DiscussionsIssue archiveOther usage issues

Archived discussion

math_matrix C4150 warning

Other usage issuesFri, 09/15/2006 - 12:421 reply

Browse this forum
QuestionAuthor

just a little note:
the class math_Matrix does not have an explicit destructor declared. This causes an annoying compiler warning (C4150) on VC++.NET wherever you try to delete a pointer to math_Matrix.

Declaring a simple explicit destructor in next version could avoid this warning to pervade the warnings output on certain code.

thanks.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

Hi Author,
The problem is rather not in absense of explicit destructor, but in incomplete declaration of the class.
It can occur if you do not include the header of the class, but use 'class' statement:

class math_Matrix;
void SomeFunc( math_Matrix* pMatrix )
{
delete pMatrix;
}