2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-27 19:12:08 +00:00

Don't assume default-constructibility

This commit is contained in:
Kolya Matteo
2016-05-02 09:52:41 -04:00
parent 627a4cedfd
commit 589a18f63f

View File

@@ -417,7 +417,7 @@ public:
*this = zero;
return *this;
}
std::vector<T> prod(size() + value.size() - 1);
std::vector<T> prod(size() + value.size() - 1, T(0));
for (size_type i = 0; i < value.size(); ++i)
for (size_type j = 0; j < size(); ++j)
prod[i+j] += m_data[j] * value[i];