Skip to content
Snippets Groups Projects
Commit 57e367e4 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

virtual inheritance of ProblemTimeinterface in ProblemInstat

parent 557efb43
No related branches found
No related tags found
1 merge request!20virtual inheritance of ProblemTimeinterface in ProblemInstat
......@@ -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)
{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment