From 589a18f63f4c8a2e37fc5d406dbe9e4a3accd189 Mon Sep 17 00:00:00 2001 From: Kolya Matteo Date: Mon, 2 May 2016 09:52:41 -0400 Subject: [PATCH] Don't assume default-constructibility --- include/boost/math/tools/polynomial.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/math/tools/polynomial.hpp b/include/boost/math/tools/polynomial.hpp index 3f82df72f..6b8c65666 100644 --- a/include/boost/math/tools/polynomial.hpp +++ b/include/boost/math/tools/polynomial.hpp @@ -417,7 +417,7 @@ public: *this = zero; return *this; } - std::vector prod(size() + value.size() - 1); + std::vector 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];