Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
endurodave committed Dec 16, 2024
1 parent 785ddbb commit 5b158f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Delegate/DelegateAsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class DelegateFreeAsync<RetType(Args...)> : public DelegateFree<RetType(Args...)
/// 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<DelegateMsg> msg) {
virtual void DelegateInvoke(std::shared_ptr<DelegateMsg> msg) override {
// Typecast the base pointer to back correct derived to instance
auto delegateMsg = std::dynamic_pointer_cast<DelegateAsyncMsg<Args...>>(msg);
if (delegateMsg == nullptr)
Expand Down Expand Up @@ -435,7 +435,7 @@ class DelegateMemberAsync<TClass, RetType(Args...)> : public DelegateMember<TCla
/// 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<DelegateMsg> msg) {
virtual void DelegateInvoke(std::shared_ptr<DelegateMsg> msg) override {
// Typecast the base pointer to back correct derived to instance
auto delegateMsg = std::dynamic_pointer_cast<DelegateAsyncMsg<Args...>>(msg);
if (delegateMsg == nullptr)
Expand Down Expand Up @@ -656,7 +656,7 @@ class DelegateMemberSpAsync<TClass, RetType(Args...)> : 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<DelegateMsg> msg) {
virtual void DelegateInvoke(std::shared_ptr<DelegateMsg> msg) override {
// Typecast the base pointer to back correct derived to instance
auto delegateMsg = std::dynamic_pointer_cast<DelegateAsyncMsg<Args...>>(msg);
if (delegateMsg == nullptr)
Expand Down Expand Up @@ -860,7 +860,7 @@ class DelegateFunctionAsync<RetType(Args...)> : public DelegateFunction<RetType(
/// 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<DelegateMsg> msg) {
virtual void DelegateInvoke(std::shared_ptr<DelegateMsg> msg) override {
// Typecast the base pointer to back correct derived to instance
auto delegateMsg = std::dynamic_pointer_cast<DelegateAsyncMsg<Args...>>(msg);
if (delegateMsg == nullptr)
Expand Down
1 change: 1 addition & 0 deletions tests/UnitTests/DelegateThreads_UT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "WorkerThreadStd.h"
#include <random>
#include <chrono>
#include <cstring>

using namespace DelegateLib;
using namespace std;
Expand Down

0 comments on commit 5b158f1

Please sign in to comment.