malloc(): corrupted top size when overloading + operator in c++

I’m trying to write a template class function for doing some basic operations with matrices. I have been struggling (a lot, for almost a week ) with memory issues, since it seems like every time i call my constructor class it corrupts the object. I am also suspecting that something is wrong when I define… Read More malloc(): corrupted top size when overloading + operator in c++