moved std::to_string to util.h from android

This commit is contained in:
orignal 2016-06-14 11:55:44 -04:00
parent 07cc547bab
commit a5be4c9d0e
7 changed files with 19 additions and 54 deletions

View file

@ -16,13 +16,6 @@
#include "NetDb.h"
#include "util.h"
#ifdef ANDROID
# include "to_string.h"
#else
# define to_string(x) std::to_string(x)
#endif
namespace i2p
{
namespace data
@ -379,7 +372,7 @@ namespace data
boost::asio::io_service service;
boost::system::error_code ecode;
auto it = boost::asio::ip::tcp::resolver(service).resolve (
boost::asio::ip::tcp::resolver::query (u.host_, to_string (u.port_)), ecode);
boost::asio::ip::tcp::resolver::query (u.host_, std::to_string (u.port_)), ecode);
if (!ecode)
{
boost::asio::ssl::context ctx(service, boost::asio::ssl::context::sslv23);