2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-23 14:02:13 +00:00

Use faster implementation for network_v4::canonical().

This commit is contained in:
Christopher Kohlhoff
2021-11-04 01:35:30 +11:00
parent c1a0c6a124
commit 46c729aa28

View File

@@ -123,7 +123,7 @@ public:
/// Obtain the true network address, omitting any host bits.
network_v4 canonical() const BOOST_ASIO_NOEXCEPT
{
return network_v4(network(), netmask());
return network_v4(network(), prefix_length());
}
/// Test if network is a valid host address.