]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move extra static constexpr member declaration to header 6737/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 8 Jun 2018 20:11:25 +0000 (22:11 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 8 Jun 2018 20:11:48 +0000 (22:11 +0200)
include/deal.II/base/symmetric_tensor.h
source/base/symmetric_tensor.cc

index b5a6d8896199ee1c1f40b9b1c84707c2063d6a33..f67a92ddf667ae168d79587ee8e3cf40e74a188b 100644 (file)
@@ -946,6 +946,14 @@ private:
 
 #ifndef DOXYGEN
 
+// provide declarations for static members
+template <int rank, int dim, typename Number>
+const unsigned int SymmetricTensor<rank, dim, Number>::dimension;
+
+template <int rank_, int dim, typename Number>
+constexpr unsigned int
+  SymmetricTensor<rank_, dim, Number>::n_independent_components;
+
 namespace internal
 {
   namespace SymmetricTensorAccessors
index 1d767f817cd5db6b40426d8ffafdb826c937f030..ac98f1d475b127f3faf7123f0dc756763d7c3f21 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
-
-// provide definitions for static members
-template <int rank, int dim, typename Number>
-const unsigned int SymmetricTensor<rank, dim, Number>::dimension;
-
-template <int rank, int dim, typename Number>
-constexpr unsigned int
-  SymmetricTensor<rank, dim, Number>::n_independent_components;
-
-
 // explicit instantiations
 #include "symmetric_tensor.inst"
 

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.