From feb8c2e96003fe953989b281097a77e1c414d4ae Mon Sep 17 00:00:00 2001 From: Daniel Arndt 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 ProductType, std::complex>::type inline +inline typename ProductType, std::complex>::type operator*(const std::complex &left, const std::complex &right) { using result_type = @@ -53,7 +53,7 @@ operator*(const std::complex &left, const std::complex &right) * @relatesalso ProductType */ template -typename ProductType, std::complex>::type inline +inline typename ProductType, std::complex>::type operator/(const std::complex &left, const std::complex &right) { using result_type = @@ -70,9 +70,9 @@ operator/(const std::complex &left, const std::complex &right) * @relatesalso ProductType */ template -typename ProductType, - typename EnableIfScalar::type>::type inline -operator*(const std::complex &left, const U &right) +inline + typename ProductType, typename EnableIfScalar::type>::type + operator*(const std::complex &left, const U &right) { using result_type = typename ProductType, U>::type; return static_cast(left) * static_cast(right); @@ -87,9 +87,9 @@ operator*(const std::complex &left, const U &right) * @relatesalso ProductType */ template -typename ProductType, - typename EnableIfScalar::type>::type inline -operator/(const std::complex &left, const U &right) +inline + typename ProductType, typename EnableIfScalar::type>::type + operator/(const std::complex &left, const U &right) { using result_type = typename ProductType, U>::type; return static_cast(left) / static_cast(right); @@ -104,9 +104,9 @@ operator/(const std::complex &left, const U &right) * @relatesalso ProductType */ template -typename ProductType::type, - std::complex>::type inline -operator*(const T &left, const std::complex &right) +inline + typename ProductType::type, std::complex>::type + operator*(const T &left, const std::complex &right) { using result_type = typename ProductType, U>::type; return static_cast(left) * static_cast(right); @@ -121,9 +121,9 @@ operator*(const T &left, const std::complex &right) * @relatesalso ProductType */ template -typename ProductType::type, - std::complex>::type inline -operator/(const T &left, const std::complex &right) +inline + typename ProductType::type, std::complex>::type + operator/(const T &left, const std::complex &right) { using result_type = typename ProductType, U>::type; return static_cast(left) / static_cast(right); -- 2.39.5