From: Wolfgang Bangerth Date: Fri, 19 Apr 2002 14:42:19 +0000 (+0000) Subject: Work around a problem in Intel's icc compiler. X-Git-Tag: v8.0.0~18153 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce3e577a0fe949d21634a2eacf32f0e96b00bb2b;p=dealii.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; };