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;