File tree Expand file tree Collapse file tree
Framework/include/QualityControl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,10 +89,13 @@ class Actor
8989 mServicesConfig{servicesConfig},
9090 mActivity (servicesConfig.activity)
9191 {
92- // todo extract to a separate method
93- // todo also do it for onProcess and onInit
94- // compile-time checks which can be performed only once ConcreteActor is a complete type, i.e. inside a function body
92+ // compile-time (!) checks which can be performed only once ConcreteActor is a complete type, i.e. inside a function body
93+ assertCorrectConcreteActor ();
9594
95+ }
96+
97+ consteval void assertCorrectConcreteActor () const
98+ {
9699 // mandatory methods
97100 static_assert ( requires (ConcreteActor& actor, framework::ProcessingContext& pCtx) { { actor.onProcess (pCtx) } -> std::convertible_to<void >; });
98101 static_assert ( requires (ConcreteActor& actor, framework::InitContext& iCtx) { { actor.onInit (iCtx) } -> std::convertible_to<void >; });
You can’t perform that action at this time.
0 commit comments