fix: PASSFUNCTIONDEL

This commit is contained in:
Matthias Jung
2025-10-09 12:11:33 +02:00
committed by Derek Christ
parent 305589c902
commit 5e2f5331c4

View File

@@ -16,16 +16,24 @@ class DBPhaseEntryBase;
#define PASSFUNCTIONDECL \
([[maybe_unused]] const std::shared_ptr<DBPhaseEntryBase> thisPhase, \
[[maybe_unused]] const std::shared_ptr<DBPhaseEntryBase> otherPhase)
struct PassFunction
{
using Fn = std::function<bool PASSFUNCTIONDECL>;
PassFunction(Fn passFunction) : mPassFn{std::move(passFunction)} {}
using Fn = std::function<
bool(const std::shared_ptr<DBPhaseEntryBase>&,
const std::shared_ptr<DBPhaseEntryBase>&)>;
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: