summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asio/include/asio/local/basic_endpoint.hpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/asio/include/asio/local/basic_endpoint.hpp')
-rw-r--r--3rdparty/asio/include/asio/local/basic_endpoint.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/3rdparty/asio/include/asio/local/basic_endpoint.hpp b/3rdparty/asio/include/asio/local/basic_endpoint.hpp
index ae30100728a..11a3c9b5a1f 100644
--- a/3rdparty/asio/include/asio/local/basic_endpoint.hpp
+++ b/3rdparty/asio/include/asio/local/basic_endpoint.hpp
@@ -2,7 +2,7 @@
// local/basic_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
@@ -60,7 +60,7 @@ public:
#endif
/// Default constructor.
- basic_endpoint()
+ basic_endpoint() ASIO_NOEXCEPT
{
}
@@ -76,6 +76,14 @@ public:
{
}
+ #if defined(ASIO_HAS_STRING_VIEW)
+ /// Construct an endpoint using the specified path name.
+ basic_endpoint(string_view path_name)
+ : impl_(path_name)
+ {
+ }
+ #endif // defined(ASIO_HAS_STRING_VIEW)
+
/// Copy constructor.
basic_endpoint(const basic_endpoint& other)
: impl_(other.impl_)