From 3b1c7f1943c50be5ef14c3315a984b34646e387d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 28 Feb 2019 11:59:23 +0100 Subject: compat/simple-mat: fix warnings --- compat/simple-mat.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index 43d136f9..2b4f203f 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -49,7 +49,7 @@ namespace simple_mat { enum { Q = a == 1 ? 3 : 1 }; }; - template + template struct is_arglist_correct { enum { value = h * w == sizeof...(ts) }; @@ -119,7 +119,6 @@ public: return val; } - template inline auto norm() const { return num(std::sqrt(norm_squared())); } template @@ -221,6 +220,10 @@ public: static_assert(h__ == h_ && w__ == w_); } +#ifdef __clang__ +# pragma clang diagnostic pop +#endif + constexpr Mat() { for (int j = 0; j < h_; j++) -- cgit v1.2.3