From 60574f523601b56ecd1b073ed8ae29f3231058f3 Mon Sep 17 00:00:00 2001 From: Reece Wilson Date: Sun, 21 Aug 2022 22:47:02 +0100 Subject: [PATCH] [*] Amend functional promise: fixed OnSuccess cast and added default template type --- Include/Aurora/Async/IPCPromises.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/Aurora/Async/IPCPromises.hpp b/Include/Aurora/Async/IPCPromises.hpp index b7887e96..3ae578b7 100644 --- a/Include/Aurora/Async/IPCPromises.hpp +++ b/Include/Aurora/Async/IPCPromises.hpp @@ -68,14 +68,14 @@ namespace Aurora::Async inline virtual void OnSuccess(void *in) override { - this->OnSuccess(AuReinterpretCast(in)); + this->OnSuccess(AuReinterpretCast(in)); } virtual void OnFailure(ErrorValue_t *in) = 0; virtual void OnSuccess(SuccessValue_t *in) = 0; }; - template + template struct PromiseCallbackFunctional : PromiseCallback, AuEnableSharedFromThis> { using OnSuccess_f = AuFunction &)>;