]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/asio/ip/impl/network_v4.ipp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / asio / ip / impl / network_v4.ipp
index f59949d9f0e5107491b1ffc7b211fb92656e823e..62f742c66978a5b634ca4785f5c9191077a95f4a 100644 (file)
@@ -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