mirror of https://github.com/auygun/kaliber.git
Fix for ReplyAdapter in TaskRunner
This commit is contained in:
parent
ab4c0c7e57
commit
fdbbb2a6fd
|
@ -26,7 +26,7 @@ void ReturnAsParamAdapter(std::function<ReturnType()> func,
|
||||||
template <typename ReturnType>
|
template <typename ReturnType>
|
||||||
void ReplyAdapter(std::function<void(ReturnType)> callback,
|
void ReplyAdapter(std::function<void(ReturnType)> callback,
|
||||||
ReturnType* result) {
|
ReturnType* result) {
|
||||||
callback(*result);
|
callback(std::move(*result));
|
||||||
delete result;
|
delete result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue