Don't lose array sizes in copyTo

This commit is contained in:
Julian Kent
2019-09-17 15:09:12 +02:00
parent 51d2f9f0dc
commit b4714e2ed2
2 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -90,9 +90,9 @@ public:
return (*this);
}
void copyTo(Type (&dst)[M*N]) const
void copyTo(Type dst [M*N]) const
{
memcpy(dst, _data, sizeof(dst));
memcpy(dst, _data, sizeof(Type)*M*N);
}
void copyToColumnMajor(Type (&dst)[M*N]) const