aboutsummaryrefslogtreecommitdiff
path: root/src/common/Asio
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Asio')
-rw-r--r--src/common/Asio/Strand.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/Asio/Strand.h b/src/common/Asio/Strand.h
index 5beef144c60..942ddf55cd4 100644
--- a/src/common/Asio/Strand.h
+++ b/src/common/Asio/Strand.h
@@ -35,7 +35,11 @@ namespace Trinity
Strand(IoContext& ioContext) : boost::asio::io_context::strand(ioContext) { }
};
- using boost::asio::bind_executor;
+ template<typename T>
+ inline decltype(auto) post(boost::asio::io_context::strand& strand, T&& t)
+ {
+ return boost::asio::post(strand, std::forward<T>(t));
+ }
}
}