From feb8c2e96003fe953989b281097a77e1c414d4ae Mon Sep 17 00:00:00 2001 From: Daniel Arndt <arndtd@ornl.gov> Date: Tue, 6 Aug 2019 11:33:10 -0600 Subject: [PATCH] Move inline attribute before return type --- include/deal.II/base/complex_overloads.h | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/deal.II/base/complex_overloads.h b/include/deal.II/base/complex_overloads.h index 81dd4d4a0b..a54acced40 100644 --- a/include/deal.II/base/complex_overloads.h +++ b/include/deal.II/base/complex_overloads.h @@ -37,7 +37,7 @@ struct ProductType; * @relatesalso ProductType */ template <typename T, typename U> -typename ProductType<std::complex<T>, std::complex<U>>::type inline +inline typename ProductType<std::complex<T>, std::complex<U>>::type operator*(const std::complex<T> &left, const std::complex<U> &right) { using result_type = @@ -53,7 +53,7 @@ operator*(const std::complex<T> &left, const std::complex<U> &right) * @relatesalso ProductType */ template <typename T, typename U> -typename ProductType<std::complex<T>, std::complex<U>>::type inline +inline typename ProductType<std::complex<T>, std::complex<U>>::type operator/(const std::complex<T> &left, const std::complex<U> &right) { using result_type = @@ -70,9 +70,9 @@ operator/(const std::complex<T> &left, const std::complex<U> &right) * @relatesalso ProductType */ template <typename T, typename U> -typename ProductType<std::complex<T>, - typename EnableIfScalar<U>::type>::type inline -operator*(const std::complex<T> &left, const U &right) +inline + typename ProductType<std::complex<T>, typename EnableIfScalar<U>::type>::type + operator*(const std::complex<T> &left, const U &right) { using result_type = typename ProductType<std::complex<T>, U>::type; return static_cast<result_type>(left) * static_cast<result_type>(right); @@ -87,9 +87,9 @@ operator*(const std::complex<T> &left, const U &right) * @relatesalso ProductType */ template <typename T, typename U> -typename ProductType<std::complex<T>, - typename EnableIfScalar<U>::type>::type inline -operator/(const std::complex<T> &left, const U &right) +inline + typename ProductType<std::complex<T>, typename EnableIfScalar<U>::type>::type + operator/(const std::complex<T> &left, const U &right) { using result_type = typename ProductType<std::complex<T>, U>::type; return static_cast<result_type>(left) / static_cast<result_type>(right); @@ -104,9 +104,9 @@ operator/(const std::complex<T> &left, const U &right) * @relatesalso ProductType */ template <typename T, typename U> -typename ProductType<typename EnableIfScalar<T>::type, - std::complex<U>>::type inline -operator*(const T &left, const std::complex<U> &right) +inline + typename ProductType<typename EnableIfScalar<T>::type, std::complex<U>>::type + operator*(const T &left, const std::complex<U> &right) { using result_type = typename ProductType<std::complex<T>, U>::type; return static_cast<result_type>(left) * static_cast<result_type>(right); @@ -121,9 +121,9 @@ operator*(const T &left, const std::complex<U> &right) * @relatesalso ProductType */ template <typename T, typename U> -typename ProductType<typename EnableIfScalar<T>::type, - std::complex<U>>::type inline -operator/(const T &left, const std::complex<U> &right) +inline + typename ProductType<typename EnableIfScalar<T>::type, std::complex<U>>::type + operator/(const T &left, const std::complex<U> &right) { using result_type = typename ProductType<std::complex<T>, U>::type; return static_cast<result_type>(left) / static_cast<result_type>(right); -- 2.39.5