Skip to content

Commit

Permalink
Add missing virtual base class dectoration for RequiresAspect (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Mar 20, 2021
1 parent 30ed61d commit 32f7aa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dart/common/RequiresAspect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#ifndef DART_COMMON_REQUIRESASPECT_HPP_
#define DART_COMMON_REQUIRESASPECT_HPP_

#include "dart/common/ClassWithVirtualBase.hpp"
#include "dart/common/SpecializedForAspect.hpp"

namespace dart {
Expand All @@ -50,6 +51,7 @@ class RequiresAspect
};

//==============================================================================
DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_BEGIN
template <class ReqAspect>
class RequiresAspect<ReqAspect> : public virtual SpecializedForAspect<ReqAspect>
{
Expand All @@ -58,6 +60,7 @@ class RequiresAspect<ReqAspect> : public virtual SpecializedForAspect<ReqAspect>
/// the Aspect type is required.
RequiresAspect();
};
DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_END

//==============================================================================
template <class ReqAspect1, class... OtherReqAspects>
Expand Down

0 comments on commit 32f7aa0

Please sign in to comment.