]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move inline attribute before return type 8430/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2019 17:33:10 +0000 (11:33 -0600)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2019 17:33:10 +0000 (11:33 -0600)
include/deal.II/base/complex_overloads.h

index 81dd4d4a0b43ddae958fb67cc6251ca453ac59cf..a54acced4011eab977490808b0368866ed93bb48 100644 (file)
@@ -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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.