bug #1376: add missing assertion on size mismatch with compound assignment operators (e.g., mat += mat.col(j))

This commit is contained in:
Gael Guennebaud
2017-01-23 22:06:08 +01:00
parent b0db4eff36
commit ba3f977946
6 changed files with 57 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ template<typename DstScalar,typename SrcScalar> struct assign_op {
{ internal::pstoret<DstScalar,Packet,Alignment>(a,b); }
};
// Empty overload for void type (used by PermutationMatrix
// Empty overload for void type (used by PermutationMatrix)
template<typename DstScalar> struct assign_op<DstScalar,void> {};
template<typename DstScalar,typename SrcScalar>