]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a bug in gcc3.3.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Feb 2008 14:35:04 +0000 (14:35 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Feb 2008 14:35:04 +0000 (14:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@15779 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/symmetric_tensor.h

index 75963022283474d8ff53372b87b2ca5a1aef89b4..1cb86e4299b5c906cf072d7e692586ffe8ecc8df 100644 (file)
@@ -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<rank,dim>::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<rank,dim>::n_independent_components]);
     
                                     /**
                                      *  Assignment operator.
@@ -1055,7 +1063,7 @@ SymmetricTensor<2,3>::SymmetricTensor (const Tensor<2,3> &t)
 
 template <int rank, int dim>
 inline
-SymmetricTensor<rank,dim>::SymmetricTensor (const double (&array) [n_independent_components])
+SymmetricTensor<rank,dim>::SymmetricTensor (const double (&array) [internal::SymmetricTensorAccessors::StorageType<rank,dim>::n_independent_components])
                :
                data (array)
 {}

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.