matrix: Fixed A = trans(B); problem if A is empty.
The code matrix<T> A; A = trans(B); resulted in a memory error, because operator= tried to resize A while preserving its content. Since there is no content, an error was triggered. This commit fixes the problem by calling resize() such that no values are preserved (i.e. third parameter set to 'false').
Loading
Please register or sign in to comment