From ce3e577a0fe949d21634a2eacf32f0e96b00bb2b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 19 Apr 2002 14:42:19 +0000 Subject: [PATCH] Work around a problem in Intel's icc compiler. git-svn-id: https://svn.dealii.org/trunk@5695 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-13/step-13.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; }; -- 2.39.5