diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-28 11:59:23 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-28 12:08:51 +0100 |
commit | 3b1c7f1943c50be5ef14c3315a984b34646e387d (patch) | |
tree | 35f026dfd1dae29d5d3d8f824bec345050aa5def | |
parent | 2f336fae240dadef47dad0b585ff77b3c98858c3 (diff) |
compat/simple-mat: fix warnings
-rw-r--r-- | compat/simple-mat.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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<typename num, int h, int w, typename...ts> + template<typename, int h, int w, typename...ts> struct is_arglist_correct { enum { value = h * w == sizeof...(ts) }; @@ -119,7 +119,6 @@ public: return val; } - template<int P = h_, int Q = w_> inline auto norm() const { return num(std::sqrt(norm_squared())); } template<int R, int S, int P = h_, int Q = w_> @@ -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++) |