diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-28 12:16:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-28 12:16:32 +0100 |
commit | 3f4c5ed9ef29ab84907cc42b0eea377f179d6acb (patch) | |
tree | 7039caf0afb73b1981c6317130b99743ed29bc65 /compat | |
parent | f5d25c2f95172ae96a5bf725102a26aebdb420d4 (diff) |
compat/simple-mat: move overloads out of namespace
Maybe this avoids Koenig lookup.
Diffstat (limited to 'compat')
-rw-r--r-- | compat/simple-mat.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index 49ae2c85..b7b58d42 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -286,6 +286,11 @@ public: } }; +} // ns simple_mat + +template<typename num, int h, int w> +using Mat = simple_mat::Mat<num, h, w>; + template<typename num, int h, int w> constexpr Mat<num, h, w> operator*(num scalar, const Mat<num, h, w>& mat) { @@ -301,8 +306,3 @@ constexpr Mat<num, H, W> operator*(const Mat<num, H, W>& self, num other) ret(j, i) = self(j, i) * other; return ret; } - -} // ns simple_mat - -template<typename num, int h, int w> -using Mat = simple_mat::Mat<num, h, w>; |