Skip to content
Snippets Groups Projects
Commit 025f3d2a authored by Martin Stump's avatar Martin Stump
Browse files

fix: Virtually inherit from IIdentifiable

Interface classes derived from IIdentifiable are prone to diamond inheritance.
Virtually inherit from IIdentifiable to ensure only one copy is inherited.

Closes #64

See merge request !118
parent ac55217f
No related branches found
No related tags found
1 merge request!118fix: Virtual inheritance in IEntity, IController
......@@ -25,7 +25,7 @@
namespace mantle_api
{
/// Base interface for all controllers.
class IController : public IIdentifiable
class IController : public virtual IIdentifiable
{
public:
/// Desired state of lateral domain
......
......@@ -49,7 +49,7 @@ struct EntityVisibilityConfig
};
/// Base interface for all static and dynamic scenario entities.
class IEntity : public IIdentifiable
class IEntity : public virtual IIdentifiable
{
public:
/// @brief Sets the position of the scenario entity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment