diff --git a/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h b/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h index ae24dec3..7f5dca6f 100644 --- a/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h +++ b/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h @@ -16,16 +16,24 @@ class DBPhaseEntryBase; #define PASSFUNCTIONDECL \ ([[maybe_unused]] const std::shared_ptr thisPhase, \ [[maybe_unused]] const std::shared_ptr otherPhase) + struct PassFunction { - using Fn = std::function; - PassFunction(Fn passFunction) : mPassFn{std::move(passFunction)} {} + using Fn = std::function< + bool(const std::shared_ptr&, + const std::shared_ptr&)>; - bool execute PASSFUNCTIONDECL { return mPassFn(thisPhase, otherPhase); } + explicit PassFunction(Fn passFunction) : mPassFn{std::move(passFunction)} {} + + bool execute PASSFUNCTIONDECL + { + return mPassFn(thisPhase, otherPhase); + } Fn mPassFn; }; + class TimeDependency { public: