Skip to content
Commit a3b838bd authored by Karl Rupp's avatar Karl Rupp
Browse files

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').
parent b8efde31
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment