Commit 57e367e4 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

virtual inheritance of ProblemTimeinterface in ProblemInstat

parent 557efb43
......@@ -17,18 +17,20 @@ namespace AMDiS
* Base class for \ref ProblemInstat.
*/
class ProblemInstatBase
: public ProblemTimeInterface
: public virtual ProblemTimeInterface
{
public:
/// Constructor.
ProblemInstatBase(std::string const& name)
: name_(name)
: ProblemTimeInterface()
, name_(name)
{}
/// Constructor. Stores a pointer to the provided initialProblem.
ProblemInstatBase(std::string const& name,
ProblemStatBase& initialProblem)
: name_(name)
: ProblemTimeInterface()
, name_(name)
, initialProblem_(&initialProblem)
{}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment