diff options
Diffstat (limited to 'boost/asio/ip/impl/address_v4.ipp')
-rw-r--r-- | boost/asio/ip/impl/address_v4.ipp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/boost/asio/ip/impl/address_v4.ipp b/boost/asio/ip/impl/address_v4.ipp index 7693deaf40..c572100a8b 100644 --- a/boost/asio/ip/impl/address_v4.ipp +++ b/boost/asio/ip/impl/address_v4.ipp @@ -2,7 +2,7 @@ // ip/impl/address_v4.ipp // ~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -58,7 +58,7 @@ address_v4::address_v4(address_v4::uint_type addr) static_cast<boost::asio::detail::u_long_type>(addr)); } -address_v4::bytes_type address_v4::to_bytes() const +address_v4::bytes_type address_v4::to_bytes() const BOOST_ASIO_NOEXCEPT { using namespace std; // For memcpy. bytes_type bytes; @@ -70,7 +70,7 @@ address_v4::bytes_type address_v4::to_bytes() const return bytes; } -address_v4::uint_type address_v4::to_uint() const +address_v4::uint_type address_v4::to_uint() const BOOST_ASIO_NOEXCEPT { return boost::asio::detail::socket_ops::network_to_host_long(addr_.s_addr); } @@ -109,12 +109,12 @@ std::string address_v4::to_string(boost::system::error_code& ec) const } #endif // !defined(BOOST_ASIO_NO_DEPRECATED) -bool address_v4::is_loopback() const +bool address_v4::is_loopback() const BOOST_ASIO_NOEXCEPT { return (to_uint() & 0xFF000000) == 0x7F000000; } -bool address_v4::is_unspecified() const +bool address_v4::is_unspecified() const BOOST_ASIO_NOEXCEPT { return to_uint() == 0; } @@ -136,7 +136,7 @@ bool address_v4::is_class_c() const } #endif // !defined(BOOST_ASIO_NO_DEPRECATED) -bool address_v4::is_multicast() const +bool address_v4::is_multicast() const BOOST_ASIO_NOEXCEPT { return (to_uint() & 0xF0000000) == 0xE0000000; } @@ -167,8 +167,8 @@ address_v4 make_address_v4(const char* str) return addr; } -address_v4 make_address_v4( - const char* str, boost::system::error_code& ec) +address_v4 make_address_v4(const char* str, + boost::system::error_code& ec) BOOST_ASIO_NOEXCEPT { address_v4::bytes_type bytes; if (boost::asio::detail::socket_ops::inet_pton( @@ -182,8 +182,8 @@ address_v4 make_address_v4(const std::string& str) return make_address_v4(str.c_str()); } -address_v4 make_address_v4( - const std::string& str, boost::system::error_code& ec) +address_v4 make_address_v4(const std::string& str, + boost::system::error_code& ec) BOOST_ASIO_NOEXCEPT { return make_address_v4(str.c_str(), ec); } @@ -196,7 +196,7 @@ address_v4 make_address_v4(string_view str) } address_v4 make_address_v4(string_view str, - boost::system::error_code& ec) + boost::system::error_code& ec) BOOST_ASIO_NOEXCEPT { return make_address_v4(static_cast<std::string>(str), ec); } |