From: Daniel Arndt Date: Fri, 8 Jun 2018 20:11:25 +0000 (+0200) Subject: Move extra static constexpr member declaration to header X-Git-Tag: v9.1.0-rc1~1055^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5236188684e7602a00a5f7bbae6e24143d674608;p=dealii.git Move extra static constexpr member declaration to header --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index b5a6d88961..f67a92ddf6 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -946,6 +946,14 @@ private: #ifndef DOXYGEN +// provide declarations for static members +template +const unsigned int SymmetricTensor::dimension; + +template +constexpr unsigned int + SymmetricTensor::n_independent_components; + namespace internal { namespace SymmetricTensorAccessors diff --git a/source/base/symmetric_tensor.cc b/source/base/symmetric_tensor.cc index 1d767f817c..ac98f1d475 100644 --- a/source/base/symmetric_tensor.cc +++ b/source/base/symmetric_tensor.cc @@ -24,16 +24,6 @@ DEAL_II_NAMESPACE_OPEN - -// provide definitions for static members -template -const unsigned int SymmetricTensor::dimension; - -template -constexpr unsigned int - SymmetricTensor::n_independent_components; - - // explicit instantiations #include "symmetric_tensor.inst"