diff options
Diffstat (limited to 'boost/asio/ip/impl/network_v6.ipp')
-rw-r--r-- | boost/asio/ip/impl/network_v6.ipp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/asio/ip/impl/network_v6.ipp b/boost/asio/ip/impl/network_v6.ipp index 2fb28a2fbc..426bc33b39 100644 --- a/boost/asio/ip/impl/network_v6.ipp +++ b/boost/asio/ip/impl/network_v6.ipp @@ -2,7 +2,7 @@ // ip/impl/network_v6.ipp // ~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // Copyright (c) 2014 Oliver Kowalke (oliver dot kowalke at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -96,6 +96,7 @@ std::string network_v6::to_string() const std::string network_v6::to_string(boost::system::error_code& ec) const { + using namespace std; // For sprintf. ec = boost::system::error_code(); char prefix_len[16]; #if defined(BOOST_ASIO_HAS_SECURE_RTL) @@ -162,7 +163,7 @@ network_v6 make_network_v6(const std::string& str, return network_v6(addr, static_cast<unsigned short>(prefix_len)); } -#if defined(BOOST_ASIO_HAS_STD_STRING_VIEW) +#if defined(BOOST_ASIO_HAS_STRING_VIEW) network_v6 make_network_v6(string_view str) { @@ -175,7 +176,7 @@ network_v6 make_network_v6(string_view str, return make_network_v6(static_cast<std::string>(str), ec); } -#endif // defined(BOOST_ASIO_HAS_STD_STRING_VIEW) +#endif // defined(BOOST_ASIO_HAS_STRING_VIEW) } // namespace ip } // namespace asio |