| 30 | namespace ip_unicast_compile { |
| 31 | |
| 32 | void test() |
| 33 | { |
| 34 | using namespace boost::asio; |
| 35 | namespace ip = boost::asio::ip; |
| 36 | |
| 37 | try |
| 38 | { |
| 39 | io_context ioc; |
| 40 | ip::udp::socket sock(ioc); |
| 41 | |
| 42 | // hops class. |
| 43 | |
| 44 | ip::unicast::hops hops1(1024); |
| 45 | sock.set_option(hops1); |
| 46 | ip::unicast::hops hops2; |
| 47 | sock.get_option(hops2); |
| 48 | hops1 = 1; |
| 49 | (void)static_cast<int>(hops1.value()); |
| 50 | } |
| 51 | catch (std::exception&) |
| 52 | { |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | } // namespace ip_unicast_compile |
| 57 |
nothing calls this directly
no test coverage detected