diff options
Diffstat (limited to '3rdparty/asio/include/asio/local/detail/endpoint.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/local/detail/endpoint.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/3rdparty/asio/include/asio/local/detail/endpoint.hpp b/3rdparty/asio/include/asio/local/detail/endpoint.hpp index 6125e972571..699c225d5a6 100644 --- a/3rdparty/asio/include/asio/local/detail/endpoint.hpp +++ b/3rdparty/asio/include/asio/local/detail/endpoint.hpp @@ -2,7 +2,7 @@ // local/detail/endpoint.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) // Derived from a public domain implementation written by Daniel Casimiro. // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -23,6 +23,7 @@ #include <cstddef> #include <string> #include "asio/detail/socket_types.hpp" +#include "asio/detail/string_view.hpp" #include "asio/detail/push_options.hpp" @@ -43,6 +44,11 @@ public: // Construct an endpoint using the specified path name. ASIO_DECL endpoint(const std::string& path_name); + #if defined(ASIO_HAS_STRING_VIEW) + // Construct an endpoint using the specified path name. + ASIO_DECL endpoint(string_view path_name); + #endif // defined(ASIO_HAS_STRING_VIEW) + // Copy constructor. endpoint(const endpoint& other) : data_(other.data_), |