]> https://gitweb.dealii.org/ - dealii.git/commitdiff
move out-of class 11031/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 12 Oct 2020 13:14:55 +0000 (09:14 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 12 Oct 2020 13:14:55 +0000 (09:14 -0400)
include/deal.II/base/tensor.h

index e13fcac55de652a3433511160c9e4bee04dda48c..4cddefe90fbc3b54614a71caa4e2c1aedd1900d2 100644 (file)
@@ -494,11 +494,7 @@ public:
    * @note This function can also be used in CUDA device code.
    */
   constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV
-                                  Tensor()
-    // We would like to use =default, but this causes compile errors with some
-    // MSVC versions and internal compiler errors with -O1 in gcc 5.4.
-    : values{}
-  {}
+                                  Tensor();
 
   /**
    * A constructor where the data is copied from a C-style array.
@@ -1163,6 +1159,17 @@ constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV
 }
 
 
+
+template <int rank_, int dim, typename Number>
+constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV
+                                Tensor<rank_, dim, Number>::Tensor()
+  // We would like to use =default, but this causes compile errors with some
+  // MSVC versions and internal compiler errors with -O1 in gcc 5.4.
+  : values{}
+{}
+
+
+
 template <int rank_, int dim, typename Number>
 constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV
                                 Tensor<rank_, dim, Number>::Tensor(const array_type &initializer)

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.