diff options
Diffstat (limited to '3rdparty/asio/include/asio/ip/basic_resolver_query.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/ip/basic_resolver_query.hpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/3rdparty/asio/include/asio/ip/basic_resolver_query.hpp b/3rdparty/asio/include/asio/ip/basic_resolver_query.hpp index 9bde9fea228..ada5a4f3802 100644 --- a/3rdparty/asio/include/asio/ip/basic_resolver_query.hpp +++ b/3rdparty/asio/include/asio/ip/basic_resolver_query.hpp @@ -2,7 +2,7 @@ // ip/basic_resolver_query.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 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) @@ -212,6 +212,22 @@ public: hints_.ai_next = 0; } + /// Copy construct a @c basic_resolver_query from another. + basic_resolver_query(const basic_resolver_query& other) + : hints_(other.hints_), + host_name_(other.host_name_), + service_name_(other.service_name_) + { + } + + /// Move construct a @c basic_resolver_query from another. + basic_resolver_query(basic_resolver_query&& other) + : hints_(other.hints_), + host_name_(static_cast<std::string&&>(other.host_name_)), + service_name_(static_cast<std::string&&>(other.service_name_)) + { + } + /// Get the hints associated with the query. const asio::detail::addrinfo_type& hints() const { |