MCPcopy Create free account
hub / github.com/boostorg/beast / testAwaitableCompiles

Method testAwaitableCompiles

test/beast/websocket/accept.cpp:901–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899
900#if BOOST_ASIO_HAS_CO_AWAIT
901 void testAwaitableCompiles(
902 stream<net::ip::tcp::socket>& s,
903 http::request<http::empty_body>& req,
904 net::mutable_buffer buf
905 )
906 {
907 static_assert(std::is_same_v<
908 net::awaitable<void>, decltype(
909 s.async_accept(net::use_awaitable))>);
910
911 static_assert(std::is_same_v<
912 net::awaitable<void>, decltype(
913 s.async_accept(req, net::use_awaitable))>);
914
915 static_assert(std::is_same_v<
916 net::awaitable<void>, decltype(
917 s.async_accept(buf, net::use_awaitable))>);
918 }
919#endif
920
921 void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected