]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around a problem in Intel's icc compiler.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 19 Apr 2002 14:42:19 +0000 (14:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 19 Apr 2002 14:42:19 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@5695 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-13/step-13.cc

index effa35ec9d33562157af93c420c70e9d3911bfdf..db9677e3895db6f1415e3e4391f106ba5d920699 100644 (file)
@@ -1687,10 +1687,23 @@ namespace LaplaceSolver
                                 // this, the following two classes
                                 // are probably straightforward from
                                 // the previous examples.
+                                //
+                                // As in previous examples, the C++
+                                // language forces us to declare and
+                                // define a constructor to the
+                                // following classes even though they
+                                // are empty. This is due to the fact
+                                // that the base class has no default
+                                // constructor (i.e. one without
+                                // arguments), even though it has a
+                                // constructor which has default
+                                // values for all arguments.
 template <int dim>
 class Solution : public Function<dim>
 {
   public:
+    Solution () : Function<dim> () {};
+    
     virtual double value (const Point<dim>   &p,
                          const unsigned int  component) const;
 };
@@ -1714,6 +1727,8 @@ template <int dim>
 class RightHandSide : public Function<dim>
 {
   public:
+    RightHandSide () {};
+    
     virtual double value (const Point<dim>   &p,
                          const unsigned int  component) const;
 };

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.