| 837 | |
| 838 | #if BOOST_ASIO_HAS_CO_AWAIT |
| 839 | void testAwaitableCompiles( |
| 840 | stream<test::stream>& s, |
| 841 | net::mutable_buffer buf, |
| 842 | bool fin) |
| 843 | { |
| 844 | static_assert(std::is_same_v< |
| 845 | net::awaitable<std::size_t>, decltype( |
| 846 | s.async_write(buf, net::use_awaitable))>); |
| 847 | |
| 848 | static_assert(std::is_same_v< |
| 849 | net::awaitable<std::size_t>, decltype( |
| 850 | s.async_write_some(fin, buf, net::use_awaitable))>); |
| 851 | } |
| 852 | #endif |
| 853 | |
| 854 | void |
nothing calls this directly
no test coverage detected