From ca07aa8a0a0472739dc0dccc4676bd453e33b13d Mon Sep 17 00:00:00 2001 From: Kolya Matteo Date: Sun, 1 May 2016 20:47:54 -0400 Subject: [PATCH] Fix indefinite hang with p *= p --- 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 73980d6aa..c69a1ea53 100644 --- a/include/boost/math/tools/polynomial.hpp +++ b/include/boost/math/tools/polynomial.hpp @@ -408,7 +408,7 @@ public: return *this; } template - polynomial& operator *=(const polynomial& value) + polynomial& operator *=(const polynomial value) { // TODO: FIXME: use O(N log(N)) algorithm!!! polynomial const zero = zero_element(std::multiplies());