From: wolf Date: Fri, 19 Apr 2002 14:42:19 +0000 (+0000) Subject: Work around a problem in Intel's icc compiler. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=323b1c0e8f33bbbfd58bf234c5f1ada495882ac2;p=dealii-svn.git Work around a problem in Intel's icc compiler. git-svn-id: https://svn.dealii.org/trunk@5695 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-13/step-13.cc b/deal.II/examples/step-13/step-13.cc index effa35ec9d..db9677e389 100644 --- a/deal.II/examples/step-13/step-13.cc +++ b/deal.II/examples/step-13/step-13.cc @@ -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 class Solution : public Function { public: + Solution () : Function () {}; + virtual double value (const Point &p, const unsigned int component) const; }; @@ -1714,6 +1727,8 @@ template class RightHandSide : public Function { public: + RightHandSide () {}; + virtual double value (const Point &p, const unsigned int component) const; };