From 3f4c5ed9ef29ab84907cc42b0eea377f179d6acb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 28 Feb 2019 12:16:32 +0100 Subject: compat/simple-mat: move overloads out of namespace Maybe this avoids Koenig lookup. --- compat/simple-mat.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'compat') 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 +using Mat = simple_mat::Mat; + template constexpr Mat operator*(num scalar, const Mat& mat) { @@ -301,8 +306,3 @@ constexpr Mat operator*(const Mat& self, num other) ret(j, i) = self(j, i) * other; return ret; } - -} // ns simple_mat - -template -using Mat = simple_mat::Mat; -- cgit v1.2.3