diff options
Diffstat (limited to '3rdparty/asio/include/asio/error.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/error.hpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/3rdparty/asio/include/asio/error.hpp b/3rdparty/asio/include/asio/error.hpp index 5d5767a4e55..8b4decd52d2 100644 --- a/3rdparty/asio/include/asio/error.hpp +++ b/3rdparty/asio/include/asio/error.hpp @@ -2,7 +2,7 @@ // error.hpp // ~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 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) @@ -253,13 +253,17 @@ inline const asio::error_category& get_addrinfo_category() extern ASIO_DECL const asio::error_category& get_misc_category(); -static const asio::error_category& system_category +static const asio::error_category& + system_category ASIO_UNUSED_VARIABLE = asio::error::get_system_category(); -static const asio::error_category& netdb_category +static const asio::error_category& + netdb_category ASIO_UNUSED_VARIABLE = asio::error::get_netdb_category(); -static const asio::error_category& addrinfo_category +static const asio::error_category& + addrinfo_category ASIO_UNUSED_VARIABLE = asio::error::get_addrinfo_category(); -static const asio::error_category& misc_category +static const asio::error_category& + misc_category ASIO_UNUSED_VARIABLE = asio::error::get_misc_category(); } // namespace error @@ -332,7 +336,7 @@ namespace socket_errc { namespace resolver_errc { // Simulates the proposed resolver_errc scoped enum. using error::host_not_found; - using error::host_not_found_try_again; + const error::netdb_errors try_again = error::host_not_found_try_again; using error::service_not_found; } // namespace resolver_errc } // namespace asio |