From 5236188684e7602a00a5f7bbae6e24143d674608 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 8 Jun 2018 22:11:25 +0200 Subject: [PATCH] Move extra static constexpr member declaration to header --- include/deal.II/base/symmetric_tensor.h | 8 ++++++++ source/base/symmetric_tensor.cc | 10 ---------- 2 files changed, 8 insertions(+), 10 deletions(-) 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" -- 2.39.5