Need namespace cstd for sprintf.
This commit is contained in:
parent
a2992ace2c
commit
bf69d3f390
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user