From: Daniel Arndt Date: Tue, 6 Aug 2019 17:33:10 +0000 (-0600) Subject: Move inline attribute before return type X-Git-Tag: v9.2.0-rc1~1242^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=feb8c2e96003fe953989b281097a77e1c414d4ae;p=dealii.git Move inline attribute before return type --- 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);