summaryrefslogtreecommitdiff
path: root/boost/asio/ip/impl/network_v4.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/asio/ip/impl/network_v4.ipp')
-rw-r--r--boost/asio/ip/impl/network_v4.ipp7
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/asio/ip/impl/network_v4.ipp b/boost/asio/ip/impl/network_v4.ipp
index f59949d9f0..62f742c669 100644
--- a/boost/asio/ip/impl/network_v4.ipp
+++ b/boost/asio/ip/impl/network_v4.ipp
@@ -2,7 +2,7 @@
// ip/impl/network_v4.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
@@ -127,6 +127,7 @@ std::string network_v4::to_string() const
std::string network_v4::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)
@@ -193,7 +194,7 @@ network_v4 make_network_v4(const std::string& str,
return network_v4(addr, static_cast<unsigned short>(prefix_len));
}
-#if defined(BOOST_ASIO_HAS_STD_STRING_VIEW)
+#if defined(BOOST_ASIO_HAS_STRING_VIEW)
network_v4 make_network_v4(string_view str)
{
@@ -206,7 +207,7 @@ network_v4 make_network_v4(string_view str,
return make_network_v4(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