From a40de1a8987a982780daf207369fdd457de17fa1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 31 Jul 2018 12:45:30 +0200 Subject: compat/simple-mat: remove static_assert message --- compat/simple-mat.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'compat') diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index c8c9f48b..2dfdab04 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -76,7 +76,7 @@ public: template std::enable_if_t::value, num&> constexpr inline operator()(unsigned i) & { return data[0][i]; } -#define OPENTRACK_ASSERT_SWIZZLE static_assert(P == h_ && Q == w_, "") +#define OPENTRACK_ASSERT_SWIZZLE static_assert(P == h_ && Q == w_) // const variants template std::enable_if_t::value, num> @@ -111,7 +111,7 @@ public: std::enable_if_t::value, num> norm() const { - static_assert(P == h_ && Q == w_, ""); + static_assert(P == h_ && Q == w_); const num val = dot(*this); @@ -125,7 +125,7 @@ public: std::enable_if_t::value, num> constexpr dot(const Mat& p2) const { - static_assert(P == h_ && Q == w_, ""); + static_assert(P == h_ && Q == w_); num ret = 0; constexpr int len = vector_len::value; @@ -138,7 +138,7 @@ public: std::enable_if_t::value, Mat::P, is_dim3::Q>> constexpr cross(const Mat& b) const { - static_assert(P == h_ && Q == w_, ""); + static_assert(P == h_ && Q == w_); auto& a = *this; return Mat(a.y()*b.z() - a.z()*b.y(), @@ -222,7 +222,7 @@ public: typename = std::enable_if_t::value>> constexpr Mat(const ts... xs) : data{static_cast(xs)...} { - static_assert(h__ == h_ && w__ == w_, ""); + static_assert(h__ == h_ && w__ == w_); } #ifdef __GNUG__ @@ -252,7 +252,7 @@ public: template static std::enable_if_t> eye() { - static_assert(h_ == h__, ""); + static_assert(h_ == h__); Mat ret; for (int j = 0; j < h_; j++) -- cgit v1.2.3