summaryrefslogtreecommitdiff
path: root/boost/asio/local/detail/endpoint.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/asio/local/detail/endpoint.hpp')
-rw-r--r--boost/asio/local/detail/endpoint.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/boost/asio/local/detail/endpoint.hpp b/boost/asio/local/detail/endpoint.hpp
index 52d6246ae9..294fb95ef9 100644
--- a/boost/asio/local/detail/endpoint.hpp
+++ b/boost/asio/local/detail/endpoint.hpp
@@ -2,7 +2,7 @@
// local/detail/endpoint.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
-// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2019 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 <boost/asio/detail/socket_types.hpp>
+#include <boost/asio/detail/string_view.hpp>
#include <boost/asio/detail/push_options.hpp>
@@ -44,6 +45,11 @@ public:
// Construct an endpoint using the specified path name.
BOOST_ASIO_DECL endpoint(const std::string& path_name);
+ #if defined(BOOST_ASIO_HAS_STRING_VIEW)
+ // Construct an endpoint using the specified path name.
+ BOOST_ASIO_DECL endpoint(string_view path_name);
+ #endif // defined(BOOST_ASIO_HAS_STRING_VIEW)
+
// Copy constructor.
endpoint(const endpoint& other)
: data_(other.data_),