mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 14:28:59 +08:00
9d473a6954
* [boost] Update to 1.70.0 * [boost-build] Update to 1.70.0 * [folly][freeopcua][libtorrent][websocketpp] Upgrades/patches to handle boost 1.70 * [boost-variant] Revert to 1.69 due to regression [fizz][folly] Update and fix for boost 1.70 [libsodium] Use CMake buildsystem replacement to enable non-Windows * [wangle] Update. [folly] Avoid linking debug libs in release. * [pcl] Fix compatibility with boost 1.70 * [fizz] Handle merge regression * [arrow] Modernize and fix cmake targets * [boost-type-traits] Update patches for arm64-windows * [boost-locale] Add boost-system and boost-thread as arm64 dependencies * [ompl] Add missing boost-timer dependency
30 lines
974 B
Diff
30 lines
974 B
Diff
diff --git a/src/server/opc_tcp_async.cpp b/src/server/opc_tcp_async.cpp
|
|
index 9c34d72..9e68d9b 100644
|
|
--- a/src/server/opc_tcp_async.cpp
|
|
+++ b/src/server/opc_tcp_async.cpp
|
|
@@ -106,7 +106,11 @@ public:
|
|
*/
|
|
typedef std::promise<void> Promise;
|
|
Promise promise;
|
|
+#if BOOST_VERSION >= 107000
|
|
+ boost::asio::post(Socket.get_executor(), bind(&Promise::set_value, &promise));
|
|
+#else
|
|
Socket.get_io_service().post(bind(&Promise::set_value, &promise));
|
|
+#endif
|
|
promise.get_future().wait();
|
|
}
|
|
|
|
@@ -372,7 +376,11 @@ void OpcTcpServer::Shutdown()
|
|
*/
|
|
typedef std::promise<void> Promise;
|
|
Promise promise;
|
|
- acceptor.get_io_service().post(bind(&Promise::set_value, &promise));
|
|
+#if BOOST_VERSION >= 107000
|
|
+ boost::asio::post(acceptor.get_executor(), bind(&Promise::set_value, &promise));
|
|
+#else
|
|
+ acceptor.get_io_service().post(bind(&Promise::set_value, &promise));
|
|
+#endif
|
|
promise.get_future().wait();
|
|
}
|
|
|