From: bangerth Date: Tue, 26 Feb 2008 14:35:04 +0000 (+0000) Subject: Work around a bug in gcc3.3. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6338a14db7e3e4ae6c23ab0af2656413708bea83;p=dealii-svn.git Work around a bug in gcc3.3. git-svn-id: https://svn.dealii.org/trunk@15779 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/symmetric_tensor.h b/deal.II/base/include/base/symmetric_tensor.h index 7596302228..1cb86e4299 100644 --- a/deal.II/base/include/base/symmetric_tensor.h +++ b/deal.II/base/include/base/symmetric_tensor.h @@ -675,11 +675,19 @@ class SymmetricTensor * stored in symmetric tensors; its use * is therefore discouraged. * - * This constructor is currently inly + * This constructor is currently only * implemented for symmetric tensors of * rank 2. + * + * The size of the array passed + * is equal to + * SymmetricTensor::n_independent_component; + * the reason for using the + * object from the internal + * namespace is to work around + * bugs in some older compilers. */ - SymmetricTensor (const double (&array) [n_independent_components]); + SymmetricTensor (const double (&array) [internal::SymmetricTensorAccessors::StorageType::n_independent_components]); /** * Assignment operator. @@ -1055,7 +1063,7 @@ SymmetricTensor<2,3>::SymmetricTensor (const Tensor<2,3> &t) template inline -SymmetricTensor::SymmetricTensor (const double (&array) [n_independent_components]) +SymmetricTensor::SymmetricTensor (const double (&array) [internal::SymmetricTensorAccessors::StorageType::n_independent_components]) : data (array) {}