From dcfb06da53d56566b40ba049a074a85c0e76ebd1 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Tue, 4 Apr 2023 20:16:03 +1000 Subject: [PATCH] Ensure ip::address_v4::to_ulong is marked as deprecated in the documentation. --- include/boost/asio/ip/address_v4.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/asio/ip/address_v4.hpp b/include/boost/asio/ip/address_v4.hpp index ee6645f7..04b5fb55 100644 --- a/include/boost/asio/ip/address_v4.hpp +++ b/include/boost/asio/ip/address_v4.hpp @@ -125,11 +125,12 @@ public: /// Get the address in bytes, in network byte order. BOOST_ASIO_DECL bytes_type to_bytes() const BOOST_ASIO_NOEXCEPT; - /// Get the address as an unsigned integer in host byte order + /// Get the address as an unsigned integer in host byte order. BOOST_ASIO_DECL uint_type to_uint() const BOOST_ASIO_NOEXCEPT; #if !defined(BOOST_ASIO_NO_DEPRECATED) - /// Get the address as an unsigned long in host byte order + /// (Deprecated: Use to_uint().) Get the address as an unsigned long in host + /// byte order. BOOST_ASIO_DECL unsigned long to_ulong() const; #endif // !defined(BOOST_ASIO_NO_DEPRECATED)