|
From: | Xuefeng Yuan |
Subject: | error in array.hh matrix resize |
Date: | Wed, 16 Aug 2017 17:56:26 +0000 |
if (v != 0) it need add code if (n != 0 && m != 0) before delete; same as deconstruction. for my case, I call resize with n = 0, m = 19. it create a v with code v = new T*[n]; below is the resize code. inline void Matrix::resize(const unsigned int n, const unsigned int m) |
[Prev in Thread] | Current Thread | [Next in Thread] |