Skip to content

Commit 42a5bf3

Browse files
committed
Move correct inheritance check to happen after the type is fully known
to make clang happy again
1 parent 4d8662b commit 42a5bf3

File tree

1 file changed

+1
-1
lines changed
  • Framework/include/QualityControl

1 file changed

+1
-1
lines changed

Framework/include/QualityControl/Actor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class Actor
130130

131131
private:
132132
explicit Actor(const ServicesConfig& servicesConfig)
133-
requires(std::derived_from<ConcreteActor, Actor<ConcreteActor>>)
134133
: mServicesConfig{ servicesConfig },
135134
mActivity{ servicesConfig.activity }
136135
{
@@ -213,6 +212,7 @@ class Actor
213212
private:
214213
static consteval void assertCorrectConcreteActor()
215214
{
215+
static_assert(std::derived_from<ConcreteActor, Actor<ConcreteActor>>);
216216
// mandatory methods
217217
static_assert(requires(ConcreteActor& actor, framework::ProcessingContext& pCtx) { { actor.onProcess(pCtx) } -> std::convertible_to<void>; });
218218
static_assert(requires(ConcreteActor& actor, framework::InitContext& iCtx) { { actor.onInit(iCtx) } -> std::convertible_to<void>; });

0 commit comments

Comments
 (0)