From 1fed239f6b993b035a35806a940748f1dd750b3c Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Tue, 22 Mar 2022 17:12:22 +0100 Subject: [PATCH] Fix PushScreenArgs with integrals --- src/actions/pushscreenaction.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/actions/pushscreenaction.h b/src/actions/pushscreenaction.h index 661a5e2..92108cb 100644 --- a/src/actions/pushscreenaction.h +++ b/src/actions/pushscreenaction.h @@ -2,6 +2,7 @@ // system includes #include +#include // local includes #include "actioninterface.h" @@ -23,7 +24,8 @@ template class PushScreenActionArgs : public virtual ActionInterface { public: - PushScreenActionArgs(T1 &&arg1) : + template // to get SFINAE + PushScreenActionArgs(typename std::enable_if_t, U> &&arg1) : m_arg1{std::move(arg1)} {} PushScreenActionArgs(const T1 &arg1) :