]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a workaround for another old compiler problem.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 1 Nov 2012 02:37:36 +0000 (02:37 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 1 Nov 2012 02:37:36 +0000 (02:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@27281 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/tensor_function.h

index 4b877c2cd58ef04b7ba9d85069b89e42d00d46b5..253a161b0927bc281c952f21ed56c9e9cbadadec 100644 (file)
@@ -63,48 +63,7 @@ class TensorFunction : public FunctionTime,
                                       */
     typedef Tensor<rank,dim> value_type;
 
-#ifdef DEAL_II_LOCAL_TYPEDEF_COMP_WORKAROUND
-                                     /**
-                                      * Define a typedef for the
-                                      * return value of the gradient
-                                      * function.
-                                      *
-                                      * The construct here is only
-                                      * used in case we hit a certain
-                                      * bug in Sun's Forte
-                                      * compiler. See the respective
-                                      * macro in the aclocal.m4 file
-                                      * for a full description of the
-                                      * bug, or the documentation to
-                                      * the quadrature class.
-                                      *
-                                      * For better readability we
-                                      * later typedef this so-created
-                                      * type to one in the enclosing
-                                      * class.
-                                      */
-    template <int dim2>
-    struct GradientTypeHelper
-    {
-        typedef Tensor<rank+1,dim> type;
-    };
-
-                                     /**
-                                      * Typedef the kludge declared
-                                      * above to a type in the class
-                                      * in which we would like to use
-                                      * it.
-                                      *
-                                      * This typedef is only used if
-                                      * the respective bug in the
-                                      * compiler is encountered,
-                                      * otherwise the proper typedef
-                                      * below is used.
-                                      */
-    typedef typename GradientTypeHelper<dim>::type gradient_type;
-#else
     typedef Tensor<rank+1,dim> gradient_type;
-#endif
 
                                      /**
                                       * Constructor. May take an

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.