math_matrix C4150 warning

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.


Bearloga's picture

Hi Fabio,
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;