]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/beast/_experimental/test/impl/stream.ipp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / beast / _experimental / test / impl / stream.ipp
index 1570ccaac0c073e696e0363a066387c55ffa5c60..ec544ce15991add7c7f3ff1cb8fff2dd5e0d7393 100644 (file)
@@ -359,7 +359,11 @@ teardown(
 stream
 connect(stream& to)
 {
+#if defined(BOOST_ASIO_NO_TS_EXECUTORS)
+    stream from{net::query(to.get_executor(), net::execution::context)};
+#else // defined(BOOST_ASIO_NO_TS_EXECUTORS)
     stream from{to.get_executor().context()};
+#endif // defined(BOOST_ASIO_NO_TS_EXECUTORS)
     from.connect(to);
     return from;
 }