From 15865b741ccc49322a8ffd445d9814eba9f94710 Mon Sep 17 00:00:00 2001 From: Julian Kent Date: Mon, 9 Sep 2019 19:53:50 +0200 Subject: [PATCH] Help compiler with name resolution to avoid overload mixups --- matrix/Vector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix/Vector.hpp b/matrix/Vector.hpp index 09ad18ca69..c6f0c24698 100644 --- a/matrix/Vector.hpp +++ b/matrix/Vector.hpp @@ -66,7 +66,7 @@ public: Type norm() const { const Vector &a(*this); - return Type(::sqrt(a.dot(a))); + return Type(matrix::sqrt(a.dot(a))); } Type norm_squared() const { @@ -102,7 +102,7 @@ public: const Vector &a(*this); Vector r; for (size_t i = 0; i