Commit c217f8b6 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/problem_timeinterface_virtual_base' into 'master'

virtual inheritance of ProblemTimeinterface in ProblemInstat

See merge request !20
parents 00bc4a00 57e367e4
......@@ -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)
{}
......
Markdown is supported
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