src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp in passenger-6.0.20 vs src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp in passenger-6.0.23

- old
+ new

@@ -1,10 +1,10 @@ // // ip/udp.hpp // ~~~~~~~~~~ // -// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2024 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) // @@ -45,35 +45,35 @@ public: /// The type of a UDP endpoint. typedef basic_endpoint<udp> endpoint; /// Construct to represent the IPv4 UDP protocol. - static udp v4() BOOST_ASIO_NOEXCEPT + static udp v4() noexcept { return udp(BOOST_ASIO_OS_DEF(AF_INET)); } /// Construct to represent the IPv6 UDP protocol. - static udp v6() BOOST_ASIO_NOEXCEPT + static udp v6() noexcept { return udp(BOOST_ASIO_OS_DEF(AF_INET6)); } /// Obtain an identifier for the type of the protocol. - int type() const BOOST_ASIO_NOEXCEPT + int type() const noexcept { return BOOST_ASIO_OS_DEF(SOCK_DGRAM); } /// Obtain an identifier for the protocol. - int protocol() const BOOST_ASIO_NOEXCEPT + int protocol() const noexcept { return BOOST_ASIO_OS_DEF(IPPROTO_UDP); } /// Obtain an identifier for the protocol family. - int family() const BOOST_ASIO_NOEXCEPT + int family() const noexcept { return family_; } /// The UDP socket type. @@ -94,10 +94,10 @@ return p1.family_ != p2.family_; } private: // Construct with a specific family. - explicit udp(int protocol_family) BOOST_ASIO_NOEXCEPT + explicit udp(int protocol_family) noexcept : family_(protocol_family) { } int family_;