From 5b158f17753026dee4625e7eec20b1e7d157ef2f Mon Sep 17 00:00:00 2001 From: "BOOK-0CD3P8P8FE\\endur" Date: Mon, 16 Dec 2024 06:35:21 -0800 Subject: [PATCH] Fix build errors --- src/Delegate/DelegateAsync.h | 8 ++++---- tests/UnitTests/DelegateThreads_UT.cpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Delegate/DelegateAsync.h b/src/Delegate/DelegateAsync.h index e9c4628..77090a1 100644 --- a/src/Delegate/DelegateAsync.h +++ b/src/Delegate/DelegateAsync.h @@ -215,7 +215,7 @@ class DelegateFreeAsync : public DelegateFree msg) { + virtual void DelegateInvoke(std::shared_ptr msg) override { // Typecast the base pointer to back correct derived to instance auto delegateMsg = std::dynamic_pointer_cast>(msg); if (delegateMsg == nullptr) @@ -435,7 +435,7 @@ class DelegateMemberAsync : public DelegateMember msg) { + virtual void DelegateInvoke(std::shared_ptr msg) override { // Typecast the base pointer to back correct derived to instance auto delegateMsg = std::dynamic_pointer_cast>(msg); if (delegateMsg == nullptr) @@ -656,7 +656,7 @@ class DelegateMemberSpAsync : public DelegateMemberSp< /// source and destination `delegateMsg` access because the source thread is not waiting /// for the function call to complete. /// @param[in] msg The delegate message created and sent within `operator()(Args... args)`. - virtual void DelegateInvoke(std::shared_ptr msg) { + virtual void DelegateInvoke(std::shared_ptr msg) override { // Typecast the base pointer to back correct derived to instance auto delegateMsg = std::dynamic_pointer_cast>(msg); if (delegateMsg == nullptr) @@ -860,7 +860,7 @@ class DelegateFunctionAsync : public DelegateFunction msg) { + virtual void DelegateInvoke(std::shared_ptr msg) override { // Typecast the base pointer to back correct derived to instance auto delegateMsg = std::dynamic_pointer_cast>(msg); if (delegateMsg == nullptr) diff --git a/tests/UnitTests/DelegateThreads_UT.cpp b/tests/UnitTests/DelegateThreads_UT.cpp index 65cb53a..8b29bdb 100644 --- a/tests/UnitTests/DelegateThreads_UT.cpp +++ b/tests/UnitTests/DelegateThreads_UT.cpp @@ -4,6 +4,7 @@ #include "WorkerThreadStd.h" #include #include +#include using namespace DelegateLib; using namespace std;