Need namespace cstd for sprintf.

This commit is contained in:
Christopher Kohlhoff 2018-04-01 15:49:08 +10:00
parent a2992ace2c
commit bf69d3f390
2 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@ std::string network_v4::to_string() const
std::string network_v4::to_string(asio::error_code& ec) const
{
using namespace std; // For sprintf.
ec = asio::error_code();
char prefix_len[16];
#if defined(ASIO_HAS_SECURE_RTL)

View File

@ -95,6 +95,7 @@ std::string network_v6::to_string() const
std::string network_v6::to_string(asio::error_code& ec) const
{
using namespace std; // For sprintf.
ec = asio::error_code();
char prefix_len[16];
#if defined(ASIO_HAS_SECURE_RTL)